• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Ranch Hand
Posts: 98
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.
 
author & internet detective
Posts: 40198
816
Eclipse IDE VI Editor Java
  • 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.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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: 98
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much.

Problem was mine as non-english speaker.

Regards,
 
We're being followed by intergalactic spies! Quick! Take this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic