No, this is not possible in Java.
In Java, all method arguments are passed by value. Note that non-primitive type variables that are object references are also passed by value: in this case, a reference is passed by value. Please note that passing a reference by value does not match passing by reference.
Jesper
source share