• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Chapter 6 Exceptions, Question 18 from Java OCA 8 Programmer I Study Guide

 
Venny Ra
Greenhorn
Posts: 15
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 6 Exceptions, Question 18 from Java OCA 8 Programmer I Study Guide by Jeanne Boyarsky and Scott Selikoff

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 in the end: A, B, C, E. Checked exceptions are required to be handled or declared. Runtime
exceptions are allowed to be handled or declared. Errors are allowed to be handled or
declared, but this is bad practice.

Shouldn't it just be B, C, E? The explanation is correct though.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We actually have a fairly lengthy discussion on this. The gist is that it is an English interpretation thing. I wrote that question and think that allowed is a subset of required making both true.

On the real exam, you'll be told how many answers are correct making this sort of thing obvious. For the book, give yourself credit whether you chose A or not.
 
Venny Ra
Greenhorn
Posts: 15
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:We actually have a fairly lengthy discussion on this. The gist is that it is an English interpretation thing. I wrote that question and think that allowed is a subset of required making both true.

On the real exam, you'll be told how many answers are correct making this sort of thing obvious. For the book, give yourself credit whether you chose A or not.


nice. thanks for replying.. I'll go through the discussion topic.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venny Ra wrote:Chapter 6 Exceptions, Question 18 from Java OCA 8 Programmer I Study Guide by Jeanne Boyarsky and Scott Selikoff

Oh no, not that one again! It brings back memories
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venny Ra wrote:I'll go through the discussion topic.

In short: the actual exam would have said "Select 4 correct answers" (as each question mentions the number of correct answers you have to select). So you would probably have immediately selected B, C, and E. And after some reconsideration, you would select A as well, because D and F are definitely wrong, so by elimination you get to the right answer (which is definitely a valuable test taking technique).
 
Sebastian Wie
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion this answer is not correct.

Allowed, means that you can handle it or not. But checked exeptions are required to handle!
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Wie wrote:Allowed, means that you can handle it or not. But checked exeptions are required to handle!

I agree with you as well. But it seems related to an interpretation of the English language as you can read in this pretty lengthy discussion.

On the actual exam you'll know how many answers to select, so you'll probably select that one as well because the other possible options are definitely wrong.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic