I am trying to figure out exactly what determines if an exception
is checked or unchecked. Is it whether or not the exception class is
derived from RuntimeException?
Arne Vajhøj - 01 Jul 2007 01:48 GMT
> I am trying to figure out exactly what determines if an exception
> is checked or unchecked. Is it whether or not the exception class is
> derived from RuntimeException?
Yes.
Arne
Tom Hawtin - 01 Jul 2007 03:27 GMT
>> I am trying to figure out exactly what determines if an exception
>> is checked or unchecked. Is it whether or not the exception class is
>> derived from RuntimeException?
>
> Yes.
RuntimeException or Error. Error is an exception, it just isn't a
subtype of Exception.
Tom Hawtin
Roedy Green - 01 Jul 2007 18:20 GMT
>I am trying to figure out exactly what determines if an exception
>is checked or unchecked. Is it whether or not the exception class is
>derived from RuntimeException?
see http://mindprod.com/jgloss/exception.html#TYPES for the various
classifications.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com