Java is pass-by-value.(OK, once again… with feeling.)
Java is pass-by-value.
For primitives, you pass a copy of the actual value.
For references to objects, you pass a copy of the reference (the remote control).
http://www.javaranch.com/campfire/StoryPassBy.jsp 에서 참고를 하세요.. ^^