1.

If The Compiler Erases All Type Parameters At Compile Time, Why Should You Use Generics?

Answer»

You should use generics because:

  • The JAVA compiler enforces tighter type checks on GENERIC code at compile TIME.
  • Generics SUPPORT programming types as parameters.
  • Generics enable you to implement generic algorithms

You should use generics because:



Discussion

No Comment Found