Java Professional — Easy
Key points
- In Java, generic classes are declared by using angle brackets
- The generic type parameter is typically represented by a single uppercase letter, such as T
- The correct syntax for declaring a generic class includes the class keyword followed by the class name and the generic type parameter
- Incorrect options either use incorrect syntax or do not include the generic type parameter
Ready to go further?
Related questions
