aspose file tools*
The moose likes Beginning Java and the fly likes instance vs object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "instance vs object" Watch "instance vs object" New topic
Author

instance vs object

kiran nyala
Ranch Hand

Joined: Sep 21, 2009
Posts: 47

how we can differ instance, object and reference ?
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

Class is an idea of a structured data. Objects are manifestations of this structure in memory. And references are unique handles to these objects in memory.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
An object is an instance of a class

From a class you can create many objects, many instances of that class.

A reference is a variable that can refer to an object.

Here's a link to the java tutorial. It's a good beginning

http://java.sun.com/docs/books/tutorial/java/concepts/index.html


Bye,
Nicola
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: instance vs object