Passing Java Arguments
A: Pass By Reference means the passing the address itself rather than passing the value. Pass by Value means passing a copy of the value instead.
A: Primitive data types are passed by value. As such if the value of the parameter changes in the method, the outside variable value will not change.
A: No you cannot pass an argument by reference in Java. In Java the arguments are always passed by value .
A: Java only supports passing argument by value. So with objects, the object reference(pointer) itself is passed by value and so both the original reference and parameter copy both refer to the same object. This way it still looks like they are passed by reference but under the hood it is still by value.