Multiple Choice
What does it mean when the syntax ? extends D is used?
A) Any superclass of D may be used.
B) Any subclass of D may be used.
C) Any subclass or superclass of D may be used.
D) This indicates a wildcard with an upper bound
Correct Answer:

Verified
Correct Answer:
Verified
Q16: Consider the following code snippet: public static
Q17: Which of the following satisfies the wildcard
Q18: Consider the following code snippet in the
Q19: What is the best technique for overcoming
Q20: Which of the following satisfies the wildcard
Q22: Consider the following code snippet: ArrayList<Coin> coins1
Q23: Generics limit Java code somewhat. Which of
Q24: Which of the following are restrictions of
Q25: Which of the following statements about using
Q26: Consider the following code snippet: public class