Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checked Expceptions

 
Tayitu Betule
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following are checked exceptions? (Choose three)

A. IllegalThreadStateException
B. IllegalMonitorStateException
C. ParseException
D. NumberFormatException
E. IOException
F. RuntimeException
G. ClassNotFoundException
 
Ankit Garg
Sheriff
Posts: 9527
32
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tayitu please QuoteYourSources when you post a mock exam question...
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Prithvi Sehgal
Ranch Hand
Posts: 774
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic