Skip to main content
Source Link
Aniket Thakur
  • 69.5k
  • 43
  • 291
  • 299

Java passes references to objects by value.

So if any modification is done to the Object to which the reference argument points it will be reflected back on the original object.

But if the reference argument point to another Object still the original reference will point to original Object.

Post Made Community Wiki by Aniket Thakur