Tuesday, 16 August 2011

Does Java Use Pass-By-Value Semantics?

Java is actually pass-by-value for all variables running within a single
VM. Pass-by-value means pass-by-variable-value. And that means, pass-by-copy-ofthe-
variable!