Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
metaobject
on March 22, 2015
|
parent
|
context
|
favorite
| on:
Java is Pass-by-Value, Dammit
I'm guessing this is why you have to call "new" to create new objects in Java?
TazeTSchnitzel
on March 22, 2015
[–]
Java's new is similar to C++'s new as I understand it, yes. It allocates memory, initialises an object, and produces a pointer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: