Examveda

What is the purpose of the `get(int index)` method in a generic list in Java?

A. To check if an element exists at the specified index

B. To remove an element at the specified index

C. To retrieve an element at the specified index

D. To add an element at the specified index

Answer: Option C


This Question Belongs to Java Program >> Generics In Java

Join The Discussion

Related Questions on Generics in Java