Question d’entretien chez TiVo

How does the garbage collector in java work?

Réponse à la question d'entretien

Utilisateur anonyme

11 juill. 2017

GC is a built in feature which allows new objects being created without worrying explicitly about memory allocation/deallocation. Garbage collection automatically reclaims memory for reuse which enables faster development by reducing/eliminating memory leaks. All of the heap memory that is not occupied by marked objects is reclaimed, unused objects supposedly cleared..