Argument passing nature of JAVA

If you are coming from C/C++ programming background, you probably heard about “Call by Value” and “Call by Reference”  argument passing mechanisms.


  • Call by Value : A copy of the object instance is passed to called method. Any modifications made on the object inside the method will not be reflected back to the original object.
  • Call by Reference : A reference to  the original object is passed to called function. This reference may be thought as an alias for the original object and any modification done on the alias object inside the method actually done on the original object.

In this sense what about JAVA?
Continue reading Argument passing nature of JAVA