Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 42

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

Joined: Oct 12, 2008
Posts: 1369

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
 
Similar Threads
doubt in java basics
Regarding Java Object
mouse event order in IE
what is diff betwn Object and instance
object and instance