• Post Reply Bookmark Topic Watch Topic
  • New Topic

Checked and Unchecked exceptions  RSS feed

 
Ravi Dagar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!!
Can someone please provide me list of checked and unchecked exceptions for OCJP 6
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37469
539
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Per the exam objectives, you need to know the following runtime exceptions and errors:

Recognize situations that will result in any of the following being thrown: ArrayIndexOutOfBoundsException,ClassCastException, IllegalArgumentException, IllegalStateException, NullPointerException, NumberFormatException, AssertionError, ExceptionInInitializerError, StackOverflowError or NoClassDefFoundError. Understand which of these are thrown by the virtual machine and recognize situations in which others should be thrown programatically.


Which ones do you think are unchecked? (It will be more memorable if you try to answer than I just tell you.)

Also, which of these do you think are checked/unchecked?

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravi,

The distinction is made very clear at Checked versus unchecked exceptions.

Regards,
Dan
 
Sarika Chavan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravi,

This is the list which I had prepared for my OCPJP preparation. Hope it helps you.
Ls1.jpg
[Thumbnail for Ls1.jpg]
Ls2.jpg
[Thumbnail for Ls2.jpg]
 
Campbell Ritchie
Marshal
Posts: 56541
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you really want to get a list of exceptions you would have to go to the Throwable class and recursively visit the known subclasses links.

Sarika Chavan please copy and paste the lists as text; pictures may be difficult to view and cannot be indexed.
 
Sarika Chavan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, but I had word file list...I tried to paste it here..but not properly aligned. So made an image file.
Will try to paste as text.
 
Campbell Ritchie
Marshal
Posts: 56541
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
Ravi Dagar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys for helping.
I cleared my exam.
 
Campbell Ritchie
Marshal
Posts: 56541
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done with the exam
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!