File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checked Expceptions

 
Tayitu Betule
Ranch Hand
Posts: 39
  • 0
  • 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: 9495
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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,

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic