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.
Subscribe to:
Post Comments (Atom)
Welcome to techInterview, a site for technical interview questions, and other things that make you think!
0 comments:
Post a Comment