Vidyalelo
Java Programming · Q10

Java Generics

Programming · Java Programming · question 10

Q10

In Java generics, what is the purpose of the diamond operator (`<>`)?

A.
It specifies a superclass
B.
It simplifies the instantiation of generic classes
Answer
C.
It indicates a generic exception
D.
None of These

Answer: Option B

Solution

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