Question) When you pass variable as an argument to a method call, what are you passing?
Options)
Explanation) Java works that way - pass by copy. For more details refer the post on Classes in Java.
Options)
- The actual value
- A copy of the value
Explanation) Java works that way - pass by copy. For more details refer the post on Classes in Java.
No comments:
Post a Comment