Register now or log in to join your professional community.
If we follow generics perfectly we can reduce the duplication and avoid type cast exceptions.
1. Strong check types
2. Elimination of casts
3. To ease programmers to define generic logic across the application.
The purpose of generic is to void type casting and run time exception.