Mailing List Archive

Support open source code!


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

Re: java question



> IIRC java forces you to catch the exceptions
> Integer.parseInt() may generate.
> (Unless you declare that your function may throw the
> same Exception[s])

NumberFormatException is a RuntimeException, so the
compiler doesn't force you to catch or throw it.  But,
given that the input may be incorrect, you do need to
catch it anyway.

11011011

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links