Vanguard Interview Question

How is garbage collection handled in Java?