Harry is implementing a generic class to store a collection of items and wants to ensure that the class can accept various types of objects. Which wildcard should be used in the generic class declaration to allow the class to accept any type of object?

<T>

<?>

<*>

<E>

Verified Answer
Correct Option - b

To get all Infosys Certified L1 Junior Java Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram