What is the difference between Object and Instance?

Answers were Sorted based on User's Feedback



What is the difference between Object and Instance?..

Answer / siva

instance means non-static variables memory location. Object means non-static variables + non-static methods memory location

Is This Answer Correct ?    11 Yes 1 No

What is the difference between Object and Instance?..

Answer / 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

What is the difference between Object and Instance?..

Answer / subba reddy

object means.
just create variable for class this is also called reference.

instance means.

create object for the class using new operator or new instance .

Is This Answer Correct ?    2 Yes 3 No

What is the difference between Object and Instance?..

Answer / nagarjuna

Object is the creating memory location by using new operator
Instance is the creating the reference.

Is This Answer Correct ?    1 Yes 4 No

What is the difference between Object and Instance?..

Answer / srinivaskumar.nimmana

All objects except array object are instances,i.e every object except array object can be instance but every instance may not be object.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Core Java Interview Questions

What is the difference between variable & constant?

0 Answers  


What are java packages? What's the significance of packages?

0 Answers  


What is main method?

0 Answers  


What is a website container?

0 Answers  


Is java is a fully object object oriented language?

31 Answers   TCS,






Explain about the dynamic behavior of core java?

0 Answers  


What is java and its types?

0 Answers  


can we access the method of class without creating the object of the class

3 Answers  


What is the java virtual machine?

0 Answers  


Why is a constant variable important?

0 Answers  


Why string is called as immutable?

0 Answers  


Is an object null?

0 Answers  


Categories