• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sybex OCA 8 - Is it a typo (Runtime exceptions can be thrown in any method) ??  RSS feed

 
Alfonso Sanz
Ranch Hand
Posts: 69
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems to be a typo for solution to question 18, Chapter 6.

Question:
18. Which of the following are true? (Choose all that apply)
A. Checked exceptions are allowed to be handled or declared.
B. Checked exceptions are required to be handled or declared.
C. Errors are allowed to be handled or declared.
D. Errors are required to be handled or declared.
E. Runtime exceptions are allowed to be handled or declared.
F. Runtime exceptions are required to be handled or declared.


Answer:
A, B, C, E.

I think good answer is: B,C,E .

Isn't it?


Regards.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37254
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not a typo. We had a fairly lengthy discussion on the topic though.

ps - I edited the subject line to indicate which book the question references.
 
Roel De Nijs
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is another topic about this question (with exactly the same conclusion).

And just for completeness: here you'll find the official errata overview of the OCA8 study guide.
 
Roel De Nijs
Sheriff
Posts: 11338
177
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And with regard to your subject
(Runtime exceptions can be thrown in any method)

Yes, runtime exceptions can be thrown in any method. And the compiler doesn't perform any checks to see if you declared or handled them (like with checked exceptions).
 
Alfonso Sanz
Ranch Hand
Posts: 69
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much.

Problem was mine as non-english speaker.

Regards,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!