Home / MCQ Bank / Computer
Computer Generics In Java

In Java generics, what is the purpose of the `Pair ` class?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • To store a pair of values with different types

Related Computer Questions

Which value can we not assign to reference? In which scenario would you prefer to use an array over a linked list? What will be the output of the following Python code? print(math.isinf(float('-inf'))) If a simple graph G, contains n vertices and m edges, the number of edges in the Graph G'(Complement of G) is ______ Which is an electronic device that can store temporarily a single bit of data.