What is the difference between Object and Instance?
Answer Posted / titupathirao
For example, if I declare a class like
Animal a=new Animal();
Is variable 'a' in above is an instance which has an object of Animal type?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can a constructor be private and how are this() and super() method used with constructor?
Can a static method be final?
Can variables be used in java without initialization?
What do you mean by object?
When the constructor of a class is invoked?
Is space a character in java?
What are computer functions?
What is the use of jtable?
What is increment in java?
What is main difference between variable and constant?
Why synchronization is important in java?
how would you implement a thread pool? : Java thread
Why java is said to be pass-by-value ?
Can an arraylist be empty?
Explain the importance of finally block in java?