Problem Statement
Why can’t you create new T[] inside a generic class in Java?
Explanation
Generics are erased at runtime. Arrays need their reified element type. Without it, the JVM can’t enforce type safety for a new T[]. Workarounds include creating Object[] and casting, or using List<T>.