Organizational Research By

Surprising Reserch Topic

Question:Objects are passed by value or by reference?



asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes
20 views



Related Hot Questions

2 Answers

0 votes
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 .
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes
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 .
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...