Conduent interview question

Explain how JVM does garbage collection