About Question enthuware.ocajp.i.v8.2.1031 :

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

Moderator: admin

Post Reply
Ardaks
Posts: 1
Joined: Tue Jun 30, 2020 1:40 pm
Contact:

About Question enthuware.ocajp.i.v8.2.1031 :

Post by Ardaks »

Hi admin. Could you please explain, why ExceptionInInitializerError is not thrown in the forth point?

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

Re: About Question enthuware.ocajp.i.v8.2.1031 :

Post by admin »

ExceptionInInitializerError can be thrown when the code is run. But before you can run the code, it has to be compiled. Option 4 fails during compilation, which means, you can't run it. So, an ExceptionInInitializerError will not be thrown.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 79 guests