Forums Register Login

Checked Expceptions

+Pie Number of slices to send: Send
Which of the following are checked exceptions? (Choose three)

A. IllegalThreadStateException
B. IllegalMonitorStateException
C. ParseException
D. NumberFormatException
E. IOException
F. RuntimeException
G. ClassNotFoundException
+Pie Number of slices to send: Send
Tayitu please QuoteYourSources when you post a mock exam question...
+Pie Number of slices to send: Send
A question you could easily answer yourself.

Click on the links javaranch added to your exception names and you will see which of them extend RuntimeException and which do not.
+Pie Number of slices to send: Send
Please quote the source when you post some question.

Better way is to consult java official documentation to get the answer of which are the checked exceptions out of the three.

Anyhow, C,E,G are checked exceptions.

Hope this helps,

Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 654 times.
Similar Threads
Exception type and thrown
exceptions
RadioButton
checkbox in jsp
NullPointerException, but no root cause
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:28:47.