Infosys Interview Question

Explain mark and sweeo garbage collection in Java.