posted 23 years ago
Hi :
All ! I have a question about exception execute !
Question 16: What appears in the standard output if the method named problem() in the code below throws an instance of class Exception when the method named trythis() is invoked?
Select all valid answers.
a) "1"
b) "2"
c) "3"
d) "4"
e) "5"
tha answer is a,c,d . But I think e)also should be print !
I know that when there is some exception cannot be catched , finally block will execute and after finally will never execute!
Now , I think this should excute because no exception cannot be catched. Can anyone tell me mine is wrong or right ?
(Marilyn added code tags)
[This message has been edited by Marilyn deQueiroz (edited November 04, 2001).]