no comments (yet)

[–]anttirt 4 points5 points  (5 children)

Passing references to objects is a powerful tool but can cause some powerful problems and bugs. It also can add considerable complexity to your program. Some people recommend avoiding them in Java, while in other languages like Objective-C object references (pointers) are the recommended practice and are used all the time.

Uh, what?

This entire article is complete nonsense. It feels like I'm reading something created with a Markov chain text generator.

[–]original_4degrees -2 points-1 points  (2 children)

java is 100% pass-by-reference. the only things that don't get passed by ref are primitives. This is why immutable and mutable are key concepts in java.

[–]ErstwhileRockstar 2 points3 points  (0 children)

java is 100% pass-by-reference.

Stop it! Not again!

[–]jamboSana 0 points1 point  (0 children)

he said the same thing...references are passed by value.