Home » JAVA Programming » Generics » Question
  1. Which of these type parameters is used for a generic class to return and accept any type of object?
    1. K
    2. T
    3. V
    4. N
    5. None of these
Correct Option: B

T is used for type, A type variable can be any non-primitive type you specify: any class type, any interface type, any array type, or even another type variable.



Your comments will be displayed only after manual approval.