File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Object references" Watch "Object references" New topic

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

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):

Cloneable (interface):

Serializable (interface):

"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
Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218

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.


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: Object references
It's not a secret anymore!