Limitations of Generics
- Cannot form arrays of parameterized types
Comparable<E>[] is illegal. Remedy: ArrayList<Comparable<E>>
- Cannot reference type parameters in a static context (static
fields, methods, inner classes)
- Cannot throw or catch generic types