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
What is the static variable?
What is the default size of load factor in hashing based collection?
How do you test a method for an exception using junit?
What are the steps involved to write rmi based programs?
Write a java program to count the number of words present in a string?
How many types of literals are there in JAVA?
Why do we use bufferedreader?
Why there are some null interface in java? What does it mean?
Similarity and difference between static block and static method ?
What does it mean that a method or field is “static”?
What is the range of a character variable?
What is lambda in java?
Why do we need hashmap in java?
Can array grow dynamically in java?
What is ordered map in java?