What is the difference(or similarity if there are some)
between object and a variable?
Answer Posted / udayasri
Variable: Variable is a value which is change during the run
time of the program, and it allocates the memory space for
the particular data type which we mention as var = "something"
Object: Object is the blue print of the class i.e. it shows
the behavior of the class. It creates memory for that whole
class and even class is refer by this object only.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What do you mean by byte code?
How to create packages in java?
enlist some features of jdk.
What is set string?
What is a flag variable?
Why enumeration is faster than iterator?
What is the right data type to represent a price in java?
How many types of classes are there in java?
What is the difference between stream and buffer?
What is http client in java?
What is a method signature java?
What is data object example?
What are recursive functions?
What is string syntax?