Results 1 to 2 of 2

Thread: Java Help!

  1. #1
    Join Date
    Sep 2010
    Posts
    1

    Java Help!

    How many times can a variable be defined? Explain.


    How is an assignment statement different from a variable definition?


    What is the difference between a variable and a type?

  2. #2
    Join Date
    Nov 2008
    Posts
    1,221

    Re: Java Help!

    I think your trying to solve your assignment so something similar!

    Anyways, here is your answer:

    How many times can a variable be defined? - You can define infinite number of times any variable, provided its not a global variable and also each of the variable has its own block.

    How is an assignment statement different from a variable definition? - When a variable is defined/declared, a small amount of area of your memory is reserved for that variable and a junk value is stored. However, when you assign a value to a variable, this junk value gets replaced with this.

    What is the difference between a variable and a type? - I hope you mean data type here. A variable is a symbolic name given to some known or unknown quantity or value, for the purpose of allowing the name to be used independently of the value it represents. A data type is a classification identifying one of various types of data, such as floating-point, integer, or Boolean, stating the possible values for that type, the operations that can be done on that type, and the way the values of that type are stored.

Similar Threads

  1. Replies: 4
    Last Post: 04-09-2013, 11:04 PM
  2. Setting Of Java to The Point At Manual Java
    By winni in forum Software Development
    Replies: 4
    Last Post: 10-01-2011, 10:05 PM
  3. Java Programming using Adventnet SNMP Java API
    By ROCKING_Suhas in forum Software Development
    Replies: 5
    Last Post: 17-07-2010, 06:52 AM
  4. Link List Example in Java Sample program in Java
    By trickson in forum Software Development
    Replies: 2
    Last Post: 04-08-2009, 08:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,421,131.73010 seconds with 17 queries