Specifications
Sun Services
Java™ Programming Language
Module 3, slide 31 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Pass-by-Value
31
32 // Now change the day attribute
33 // through the object reference
34 changeObjectAttr(date);
35 // What is the current value?
36 System.out.println("MyDate: " + date);
37 }
38 }
The result of this output is:
MyDate: 4-7-1964










