[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double Wrapper?




Next Tuesday, the 23rd, the Certification Study group is going to discuss
this.
I suspect that they will go into rigorous detail about exceptions.
The topic for that meeting is Flow Control and Exception handling.
Like others said the issue is with Checked vs. Unchecked (or extends
RuntimeException vs.doesn't extend RuntimeException).
However, there are many other interesting and important details about
Exceptions that are part of the Programmers Certification objectives.
Hope you can come!  If you have any questions, send Lee Chalupa an Email at
LChalupa@seelink.org

Chris
chris@abney.info



Hello,

The class Double constructor is (public Double(String s) throws
NumberFormatException) declared with NumberFormatException (API docs).  Why
do this particular constructor not required to be enclosed in a try/catch
block?

I was under the impression that if a method is declared to throw an
exception the calling method should provide a try/catch or declare itself
to
throw the exception.

Thanks in advance,
D. Michael Nelson.