I've never seen such statements though,does it exist in java world at all?
Java's version of malloc is new -- it creates a new object of a specified type.
malloc
new
In Java, memory is managed for you, so you cannot explicitly delete or free an object.
delete
free
1.4m articles
1.4m replys
5 comments
57.0k users