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
2.1m questions
2.1m answers
60 comments
57.0k users