GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 305 of 928    Print  
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


  
Total Answers and Comments: 3 Last Update: November 15, 2005     Asked by: nitinsikdar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 26, 2005 02:39:37   #1  
srikanth        

RE: What is the diffrence between Object & Instance?

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


 
Is this answer useful? Yes | No
November 03, 2005 01:25:18   #2  
Mukesh Bansal        

RE: What is the diffrence between Object & Instance?

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.


 
Is this answer useful? Yes | No
November 09, 2005 04:09:29   #3  
saimsccs Member Since: October 2005   Contribution: 1    

RE: What is the diffrence between Object & Instance?
I Think both are One only.When we execute a class an instance of that class will be created.sai Thikkireddy
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape