Tuesday, 10 July 2012

Objects are passed by value or by reference?

1- Java only supports pass by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object .
2- Every thing in java is "pass by value" or "call by value" only.

No comments:

Post a Comment

What is Map Collection?

A map collection refers to a set of maps that are compiled and organized for a specific purpose, such as research, education, or preservatio...