Java ShortCut
Learn Java in a Blink..
Monday, July 5, 2010
Assigning Object Reference Variables
When you assign one object reference variable to another object reference variable, you are not creating a copy of the object; you are only making a copy of the reference.
Box b1 = new Box();
Box b2 = b1;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment