Vidyalelo
Java Programming · Q23

Java Generics

Programming · Java Programming · question 23

Q23

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
Answer
D.
To add an element at the specified index

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board