About Question enthuware.ocajp.i.v7.2.1017 :

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

Moderator: admin

Post Reply
Daniel Clinton
Posts: 29
Joined: Fri Aug 08, 2014 11:22 am
Contact:

About Question enthuware.ocajp.i.v7.2.1017 :

Post by Daniel Clinton »

For this type of question,
where Exceptions/Errors are said to be thrown either:

1. by JVM
2. by Application (programmatically)

Would it be reasonable to see all checked Exceptions as being thrown programmatically?

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

Re: About Question enthuware.ocajp.i.v7.2.1017 :

Post by admin »

Yes, it would be a reasonable memory aid. But just to be clear, the opposite is not true i.e. all unchecked exceptions are not necessarily thrown only by the JVM automatically.
If you like our products and services, please help us by posting your review here.

mjmsausava
Posts: 19
Joined: Sat Mar 25, 2017 5:38 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1017 :

Post by mjmsausava »

The illegalState exception and illegalArgument exceptions are not checked exceptions but the answer says these should be handled by the programmer. I thought programmer is required to handle checked exceptions.

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

Re: About Question enthuware.ocajp.i.v7.2.1017 :

Post by admin »

No, the answer doesn't say they these should be handled by the programmer. Please read the complete explanation carefully and let me know if something is not clear.

thank you,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 93 guests