Vidyalelo
Java Programming · Q14

Java Generics

Programming · Java Programming · question 14

Q14

In Java, which exception is thrown when there is a type mismatch due to generics?

A.
`MismatchedException`
B.
`TypeMismatchException`
C.
`NullPointerException`
D.
`ClassCastException`
Answer

Answer: Option D

Solution

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