Google Interview Question

How does the garbage collector in the JVM work and how does it reclaim orphaned objects?

Interview Answer

Anonymous

Jun 3, 2012

This is a wrong question since it's JVM dependent. The JVM specification doesn't even require garbage collection let alone a single well defined strategy.