Objects are passed by value or by reference? Ans. Java only supports pass by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object. - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
21 Nov 2023 10:26 AM study24x7 study24x7

Objects are passed by value or by reference? Ans. Java only supports pass by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles