Examveda

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

A. `MismatchedException`

B. `TypeMismatchException`

C. `NullPointerException`

D. `ClassCastException`

Answer: Option D


This Question Belongs to Java Program >> Generics In Java

Join The Discussion

Related Questions on Generics in Java