This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes urlyBird 1.2.3 - Exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "urlyBird 1.2.3 - Exceptions" Watch "urlyBird 1.2.3 - Exceptions" New topic

urlyBird 1.2.3 - Exceptions

Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
I have to implement DuplicateKeyException and RecordNotFoundException classes.

I am not sure I should extends them from Exception class (checked exception) or RuntimeException(unchekced exception)

How can you decide?

Thank you
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
I think it should be Checked, because it will be append to the method header in the interface.

Good Luck !!!

Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
Hi Jeffry,

Ya. I see your point. Thank you so much for clarifying that.

Thank you.

subject: urlyBird 1.2.3 - Exceptions
It's not a secret anymore!