Prev Next

Java / Generics

Advantages of using Generics.

  • Helps creating type-safe collections objects.
  • Facilitate Strong type validation during the compile-time.
  • Eliminates Cast operator.
  • mproves the performance as Generics eliminates casting, boxing/unboxing.
  • Enables creation of generic algorithms, customizing the algorithm to be compatible with collection of different types, that are type-safe.

More Related questions...

Show more question and Answers...


Comments & Discussions