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
Can you override static methods?
What are user defined exceptions?
How to create a custom exception?
How do you identify independent and dependent variables?
Is array a class?
Does java support Operator Overloading?
What are the steps involved to create a bean?
what is anonymous class in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is the finalize method do?
Is null a string?
What is the range of a character variable?
What is type conversion in java?
What do you meant by active and passive objects?
Is class forname reflection?