i came across this problem from a
java text book from topics of exceptions (unfortunately the text book dosn't have solutions so i cant check the answers)
however i have made an attempt at this questions below at the bottom of the page..Correct me if i'm wrong ..thanks
in the following code, the method method1() produces no output on the screen and has no return value.
My Answers below
Questions:
what is the output on the screen when method1()...
1. executes normally?
before finally
2.throws a NullPointerException?
before finally
3.throws an IllegalArgumentException?
IAE finally
4.throws an IOException?
before finally
Thanks