Question: what are the advantages of using generics in java?
Answer: Stronger type checks at compile time. A Java compiler applies strong type checking to generic code and issues errors if the code violates type safety. ... 
Elimination of casts. ... 
Enabling programmers to implement generic algorithms.