CG Infinity interview question

Q. Explain Garbage collection in JAVA ?