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:

Verified
Correct Answer:
Verified
Q7: To maintain compatibility with pre-generic Java, type
Q8: Which of the following statements about generic
Q9: Consider the following code snippet:<br>public static <E>
Q10: Which of the following statements about generic
Q11: Consider the following code snippet:<br>public class Box<E><br>{<br>private
Q13: Which of the following satisfies the wildcard
Q14: Consider the following code snippet:<br>public class Box<E><br>{<br>private
Q15: Which of the following statements about generic
Q16: Determine the correctness of the MyLinkedList generic
Q17: If a class requires two generic type