Everything in Java is passed by value.
Primitive data types are passed by value.
Object references are passed by value.
* Note that the Objects themselves are never passed to a method but, the Objects are always in the heap and only a reference to the Object is passed to the method.
Primitive data types are passed by value.
Object references are passed by value.
* Note that the Objects themselves are never passed to a method but, the Objects are always in the heap and only a reference to the Object is passed to the method.
No comments:
Post a Comment