Labels

Tuesday, November 6, 2012

How is an argument passed in java, by copy or 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

No comments:

Post a Comment