Multiple Choice
Generics limit Java code somewhat. Which of the following are limitations of generic code?
I cannot declare static variables of a generic type
II cannot declare static methods of a generic type
III cannot declare static inner classes of a generic type
A) I
B) II
C) I and II
D) I, II, and III
Correct Answer:

Verified
Correct Answer:
Verified
Q18: Consider the following code snippet in the
Q19: What is the best technique for overcoming
Q20: Which of the following satisfies the wildcard
Q21: What does it mean when the syntax
Q22: Consider the following code snippet: ArrayList<Coin> coins1
Q24: Which of the following are restrictions of
Q25: Which of the following statements about using
Q26: Consider the following code snippet: public class
Q27: Consider the following code snippet: public class
Q28: Consider our own generic class MyLinkedList shown