Google interview question

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

Interview Answer

Anonymous

3 Jun 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.