Does Java pass arguments by value or reference?
Ans) Pass by value.
1. When passing primitives, it going a copy of the variable to the method. Any change made in the method does not reflect in the calling method.
2. When dealing with objects, a copy of their reference/address is passed. Therefore the change made to the object is reflected in the calling method.