News for hackers. Stuff that matters.
Re:Java is Pass-by-Value, Dammit by metaobject on Sunday March 22, 2015 @12:22AM (#9245573)
I'm guessing this is why you have to call "new" to create new objects in Java?
Re:Java is Pass-by-Value, Dammit by TazeTSchnitzel on Sunday March 22, 2015 @12:41AM (#9245615)
Java's new is similar to C++'s new as I understand it, yes. It allocates memory, initialises an object, and produces a pointer.