Saturday, 16 March 2013

MCQ #9

Question) When you pass variable as an argument to a method call, what are you passing?

  • The actual value
  • A copy of the value
Answer) 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

t> UA-39527780-1 back to top