Java Quiz Day 33

Last Updated :
Discuss
Comments

Question 1

Which wildcard allows reading but not writing?

  • A


  • B

  • C

  • D

Question 2

What does mean?

  • A

    Unknown subtype of T

  • B

    T or its superclass

  • C

    T or subclass only

  • D

    Superclass only

Question 3

What is the benefit of bounded type parameters in generics?

  • A

    Restricts the types that can be used

  • B

    Allows type erasure

  • C

    Reduces performance


  • D

    Prevents compilation


Question 4

Which of the following defines a bounded type parameter?

  • A

  • B

  • C

  • D

Question 5

What is the use of in generics?

  • A

    Denotes specific type

  • B

    Denotes any type

  • C

    Denotes null

  • D

    Denotes static type

Question 6

Can a generic interface be created in Java?

  • A

    No

  • B

    Yes, using

  • C

    Only with class

  • D

    Only abstract interfaces

Tags:

There are 6 questions to complete.

Take a part in the ongoing discussion