About Question com.enthuware.ets.scjp.v6.1.820 :

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
Pierluigi
Posts: 8
Joined: Thu Feb 23, 2012 5:33 am
Contact:

About Question com.enthuware.ets.scjp.v6.1.820 :

Post by Pierluigi »

I think that the explanation given in the answer contains an invalid statement:
"All exceptions given in the options other than Exception, are RuntimeExceptions".
There is also "ClassNotFoundException" among the given exceptions, which is not a RuntimeException. It directly inherits from Exception, thus it's a checked exception, that IS thrown by the API (example: method readObject() and writeObject()).

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

Re: About Question com.enthuware.ets.scjp.v6.1.820 :

Post by admin »

You are right. It has been changed to NoClassDefFoundError and the explanation has been updated to that it is thrown by the JVM when it attempts to load a class and is unable to find the class file. It extends ///java.lang.Error/// and Errors are always thrown by the JVM. A programmer should never throw an Error explicitly.

thank you for your feedback!
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 25 guests