أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
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.