3M Interview Question

How do garbage collectors work in Java?