Home » JAVA Programming » Generics » Question
  1. Which of these instance cannot be created?
    1. Generic type instance
    2. Collection instances
    3. Generic class instance
    4. Integer instance
    5. None of these
Correct Option: A

It is not possible to create generic type instances. Example – “P obj = new P()” will give a compilation error.



Your comments will be displayed only after manual approval.