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
How to perform linear search in java?
What do the thread?class methods run() and start() do?
What is the private method modifier?
What is meant by call by reference?
How do you detect memory leaks?
What are mutable classes?
How do you add an element to an arraylist in java?
What is string and example?
When will you define a method as static in Java?
Why is java so popular?
What is a singleton class? Give a practical example of its usage.
what is difference betweem home interface and remote interface?
Write code to implement bubble sort in java?
What is locale?
Are global variables initialized to zero?