Innovid Interview Question

Explain how java garbage collector works