Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 9509
22
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,

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic