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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Object references" Watch "Object references" New topic
Author

Object references

Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
* Object
* Cloneable
* Serializable

My understanding is the above three are object references.

Could someone give me an example of what these are/do/mean?
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

An "object reference" is basically a "handle" on a particular instance of some class. It is essentially a memory address, indicating where exactly that object is stored.

As for Object, Cloneable, and Serializable...

Object (class):
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html

Cloneable (interface):
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Cloneable.html

Serializable (interface):
http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
Marc,

Excellent reply - especially the links!

Many thanks!!
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
The links given above come from Sun's Java API documentation. Learning how to navigate these is an essential skill for any Java programmer, imo. I strongly encourage you to use the link given here to find the docs for the version of Java that you are using.

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Object references
 
Similar Threads
why no is the same !?
Abt Casting...
Dialogs
objects passed by reference
static object refrences and non static object refrences