Dell Technologies interview question

How does Java handle garbage collection? How do you force garbage collection?

Interview Answer

Anonymous

15 Jan 2016

Java has an automated garbage collector which cannot be forced. While we can suggest to the garbage collector to free up some memory, we cannot command it to.