[Bluej-discuss] Exceptions

Luis Moreira Luis.Moreira at jet.uk
Tue Jul 4 18:24:01 BST 2006


Hi Guys, 

I am having a few problems with understanding Exceptions...

On exercise 12.23 if I understood correctly SecurityException is a
checked Exception because is not an irrecoverable error related to the
program (I am assuming from the definition of it that this is related to
a password issue?). The NoSuchMethodException is an Unchecked Exception
because if the method does not exist them the program should terminate
as processing is compromised. Is this correct or did I got this wrong?

The other issue is, why would I need an Exception NoSuchMethodException,
wouldn't the compiler at compile time pick this up and flag it?

Best regards

                        Luis    

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20060704/516772b0/attachment.html


More information about the bluej-discuss mailing list