Interestingly enough after 2 years in the IT industry only today i knew that java was always pass by value. Meaning even if you pass an object to a method basically a copy of the value of the reference(basically the memory address) is passed to the method. The below article elbaorates on this even more.
http://www.javacertificate.net/passbyvalue.htm
http://www.javacertificate.net/passbyvalue.htm
No comments:
Post a Comment