Specifications

Sun Services
Java™ Programming Language
Module 3, slide 27 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Pass-by-Value
In a single virtual machine, the Java programming
language only passes arguments by value.
When an object instance is passed as an argument to a
method, the value of the argument is a reference to the
object.
The contents of the object can be changed in the called
method, but the original object reference is never
changed.