There are three types of generations.
Gen 0, Gen1, Gen 2
First memory is allocated from gen 0 when gen 0 is full.garbage collector is called. It collects inactive objects from gen0 and active objects are moved to gen1. and active objects in gen1 is moved to gen 2.