Given:
33. try{
34. //some code here
35. }catch(NullPointerException el){
36. System.out.print("a");
37. }catch(Exception e2){
38. System.out.print("b");
39. }finally{
40. System.out.print("c");
41. }
If some sort of exception is thrown at line 34, which output is possible?
A. a
B. b
C. c
D. ac
E. abc
答案:D
參考:9-2 Java例外事件與處理機制
沒有留言:
張貼留言