Module 12: Generics and Type Safety
Type Erasure & Limitations
Understand how the JVM implements generics and why some operations are forbidden.
Type information is erased at runtime; generics exist at compile time for type checking.
You cannot instantiate generic type parameters (new T()) or create arrays of parameterized types.
Use Class<T> tokens or helper factories to work around erasure when necessary.