Multiple choice technology programming languages

Parameter passing in java is pass by reference

  1. True

  2. False

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

Java manipulates objects using references, but parameters are strictly passed by value. When an object reference is passed, a copy of the reference itself is passed, not the actual reference. Thus, parameter passing in Java is not pass-by-reference.