Solved

Suppose a Linked-List Class Called MyLinkedList with a Generic E

Question 46

Multiple Choice

Suppose a linked-list class called MyLinkedList with a generic E type has been instantiated with a java.awt.Component type variable.Consider its instance method locate with the following header:
public void locate(MyLinkedList<? extends E>) { ...}
Which type cannot be passed to method locate?
i.MyLinkedList<JButton>
II.MyLinkedList<Component>
III.MyLinkedList<JTextField>


A) I only
B) I and II only
C) II and III only
D) I, II, and III

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents