File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

instance vs object

 
kiran nyala
Ranch Hand
Posts: 50
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how we can differ instance, object and reference ?
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nicola Garofalo
Ranch Hand
Posts: 308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic