1.

How Is An Argument Passed In Java, By Copy Or By Reference?

Answer»

If the variable is PRIMITIVE DATATYPE then it is PASSED by copy.
If the variable is an object then it is passed by reference.

If the variable is primitive datatype then it is passed by copy.
If the variable is an object then it is passed by reference.



Discussion

No Comment Found