1.

Which of these Exception handlers cannot be type parameterized?(a) catch(b) throw(c) throws(d) all of the mentionedThis question was posed to me by my school teacher while I was bunking the class.I want to ask this question from Generics topic in section Generics of Java

Answer» RIGHT choice is (d) all of the mentioned

The explanation is: we cannot Create, Catch, or THROW Objects of Parameterized TYPES as generic class cannot extend the Throwable class directly or indirectly.


Discussion

No Comment Found

Related InterviewSolutions