Generics In Java - Study Mode

[#36] In Java generics, what is the purpose of the `Pair ` class?
Correct Answer

(D) To store a pair of values with different types

[#37] What does the term "type erasure" mean in Java generics?
Correct Answer

(A) The removal of generic type information at compile time

[#38] In Java, which generic class is commonly used for creating key-value pairs?
Correct Answer

(D) `Map `

[#39] In Java generics, what is the purpose of the `Enum ` interface?
Correct Answer

(B) To represent an enumeration type

[#40] What does the term "bounded type parameter" mean in Java generics?
Correct Answer

(C) A type parameter that has a specific upper or lower bound