This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: instance vs object
 
Similar Threads
object and instance
what is diff betwn Object and instance
doubt in java basics
Regarding Java Object
mouse event order in IE