J.III · Java 25 practice question
How does JLS SE 25 characterize what a generic class or interface produces when type arguments are supplied?
Check answer and explanation
Correct answer: It defines a set of parameterized types
Explanation
A generic class or interface defines a set of parameterized types formed from its type parameters and supplied type arguments.
Common trap
Saying it only produces a single raw type ignores parameterized types altogether. Claiming it creates an array type confuses parameterization with array construction. Claiming it creates an array type confuses parameterization with array construction.
Source: JLS SE 25 §4.5. Parameterized Types
Checked against the cited text on 2026-11-25.