Background
My understanding of Java generics is it being completely a compile time feature (mainly focusing on type safety checks)
Generic information only persist till compile time .In your example as well it is available till compile time. Let me explain it with one example
Public void printObject( list empt) {
// This don't shows that list keep this information at runtime that what type of object it will return . Employment en =empt.get(); }