Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Well what I know is that there are no pointers in Java. Java works with references. There is no concept of dynamic memory allocation in java. And hence there is no alternative of malloc/calloc in java. The JVM takes care of creating and releasing the memory for objects. As JVM has built in functionality of garbage collection hence no alternative to free is also provided.
19th Jun 2020, 2:26 AM
James Clark I. Vinarao
James Clark I. Vinarao - avatar