Spotify interview question

Explain java garbage collector