NCR Corporation interview question

Explain what is garbage collection in java