Infosys interview question

Explain mark and sweeo garbage collection in Java.