Philips interview question

explain gen1 and gen2 garbage collection