About Question enthuware.ocpjp.v7.2.1598 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
krohani
Posts: 31
Joined: Tue Oct 06, 2015 1:57 pm
Contact:

About Question enthuware.ocpjp.v7.2.1598 :

Post by krohani »

Paul - I got this question incorrect and I fully understand why. I just wanted to make a suggestion in regards to the wording of one of the answers.

Answer choice 5 "It will compile but will not throw any exception even if the value is not equal to 10". While this answer choice is not the correct answer choice, technically there is nothing wrong with it. It is true that it will compile and it is true that no Exception will be thrown. An AssertionError will be thrown which is an Error and an Error is a Throwable and not an Exception. Perhaps the language for this answer could be better if it was "...will not throw any exception or error..."

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1598 :

Post by admin »

Generally, the word exception with a small e is used to imply Exceptions as well as Errors. The word Exception with capital E is used to imply only the Exception (or its subclasses).

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests