Multiple Choice
What is the best technique for overcoming the restriction for the use of primitives, such as int, in generic classes and methods?
A) use of the Object type
B) use of wrapper classes
C) use String and decode values with a method such as Integer.parseInt
D) do not use generic methods when using primitives
Correct Answer:

Verified
Correct Answer:
Verified
Q14: Consider the following code snippet: public class
Q15: Consider the following code snippet: public static
Q16: Consider the following code snippet: public static
Q17: Which of the following satisfies the wildcard
Q18: Consider the following code snippet in the
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
Q23: Generics limit Java code somewhat. Which of
Q24: Which of the following are restrictions of