What is the diffrence between Object & Instance?I know that the Object is the instance of class,but why & when we call an Object as an Instance ?

I know that the Object is the instance of a class

Showing Answers 1 - 3 of 3 Answers

srikanth

  • Oct 26th, 2005
 

i think that when ever we are create an object  by using new( ).

JVM allocating memory to it instantly and that can use all the instance

varibles with that instance of class

  Was this answer useful?  Yes

Mukesh Bansal

  • Nov 3rd, 2005
 

Instance is you can is relationship in between the object and class. Lets suppose there are many objects in a program.

You always assign a instance of a class to a object.  like new ABC() is an instance of class ABC.

ABC abc = new ABC();

here abc is object which contains instance of class ABC.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions