About Question com.enthuware.ets.scjp.v6.1.820 :
Posted: Thu Apr 12, 2012 3:03 pm
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()).
"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()).