This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Checked Expceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Checked Expceptions" Watch "Checked Expceptions" New topic

Checked Expceptions

Tayitu Betule
Ranch Hand

Joined: Dec 18, 2009
Posts: 39
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

Joined: Aug 03, 2008
Posts: 9400

Tayitu please QuoteYourSources when you post a mock exam question...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
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.

JDBCSupport - An easy to use, light-weight JDBC framework -
Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 774
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,

My Blog, Follow me on Twitter,Scjp Tips, When you score low in mocks, Generics,Scjp Notes, JavaStudyGroup
I agree. Here's the link:
subject: Checked Expceptions
jQuery in Action, 3rd edition