Citibank interview question

How does grabage collection work with Java?