EY interview question

what is garbage collection in java?