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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

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

Post by ETS User »

Hi Paul,

As per the explanation of the answer:

"Note that the program ends with ExceptionInInitializerError because any exception thrown while constructing an object is wrapped into ExceptionInInitializerError and then that ExceptionInInitializerError is thrown."

Are statements inside constructors and initializing blocks count as statements that construct an object? If so, the explanation might be a little confusing since exceptions thrown in constructors and initializing blocks are not wrapped in ExceptionInInitializerError.

Would it be better to transform it into something like this:

"Note that the program ends with ExceptionInInitializerError because any exception thrown in static blocks is wrapped into ExceptionInInitializerError and then that ExceptionInInitializerError is thrown."

?

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

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

Post by admin »

You are right. The explanation is confusing. This has now been updated.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests