Ask a Question

what is garbageb collection?

on 2015-04-28 20:41:02   by Jyoti   on BCA  1 answers

avijit

on 2015-05-03 09:30:00  

In java, garbage means unreferenced objects. Garbage Collection is process of reclaiming the runtime unused memory automatically. In other words, it is a way to destroy the unused objects. To do so, we were using free() function in C language and delete() in C++. But, in java it is performed automatically. So, java provides better memory management.