Sears Interview Question

Explain garbage collection in Java in detail.