Multiple choice technology platforms and products

Java supports 'Pass-By-Reference'

  1. True

  2. False

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

Java is strictly pass-by-value. When passing objects, Java passes the reference by value - meaning you get a copy of the reference, not the original reference itself. This prevents methods from changing what the original variable points to. You can modify the object's state, but you cannot make the caller's variable reference a different object. Java has no true pass-by-reference semantics.