Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

is java pass by value or pass by reference

Both basic data types and Objects in java are pass by value. 
The difference is the value held by Objects in Java is their reference.
So the answer is: Java is always pass by value.
 
PREVIOUS NEXT
Tagged: #java #pass #pass #reference
ADD COMMENT
Topic
Name
5+7 =