File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes throws question 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 "throws question" Watch "throws question" New topic
Author

throws question

Yuan Ye
Ranch Hand

Joined: Mar 05, 2003
Posts: 172
Given that method aMethod() throws BaseException, SubException and RuntimeException of the following exception hierarchy

The question is from a mock exam. Given answer is C and D. I though B is also correct, isn't it?
Thanks
[ Jess added UBB [code] tags in order to preserve whitespace, so you can actually see the hierarchy. Check 'em out! ]
[ May 28, 2003: Message edited by: Jessica Sant ]
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
B is legal but not good practice, ie do not declare unchecked exceptions.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: throws question