Raw Types

Java-Raw Types

Raw Types Although the compiler treats different parameterizations of a generic type as different types (with different APIs) at compile time, but only one real type exists at runtime. For example, the class of Gen<Integer> and Gen<String> share the plain Java class Gen : Gen is called the raw type of the generic class. Every generic … Read more…