View Single Post
Old 19-01-2008, 22:18   #71
mad_hhatter
Senior Member
 
L'Avatar di mad_hhatter
 
Iscritto dal: Oct 2006
Messaggi: 1105
tornando IT:

citando dal link di ^TiGeRShArK^: http://www.yoda.arachsys.com/java/passing.html


"reference
The L-value of the formal parameter is set to the L-value of the actual parameter. In other words, the address of the formal parameter is the same as the address of the actual parameter. Any modifications to the formal parameter also immediately affect the actual parameter."

ora, se, concettualmente, pensiamo di passare a un metodo un oggetto (e risottolineao il concettualmente), mi pare che il comportamente in java sia esattamente quello descritto.
mad_hhatter è offline   Rispondi citando il messaggio o parte di esso