Multiple choice technology programming languages

When an instance of a class, or object, is specified as a parameter to a method, a reference to the said object is passed to the method.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java is pass-by-value, but when you pass an object reference, you're passing the value of the reference (a pointer). This means the called method receives a reference to the same object, not a copy of the object. Changes to the object's state are visible to the caller.