当前位置:SCJP程序员认证考试题库

问题:

[填空题]

1. public class test { 
2. public static string output = “” 
3.   
4. public static void foo(int i) { 
5. try { 
6. if(i= =1) { 
7. throw new Exception (); 
8. } 
9. output += “1”; 
10.} 
11. catch(Exception e)  { 
12. output += “2”; 
13. return; 
14.} 
15. finally ( 
16. output += “3”; 
17. ) 
18. output += “4”; 
19. }
20.   
21. public static void main (string args[])  ( 
22. foo(0); 
23. foo(1); 
24.   
25. ) 
26. }
What is the value of the variable output at line 24?()

力偶只能用()来进行平衡。 ["力偶","力偶矩","分力","合力"] 学前儿童体育的基本体操有徒手操,(),()。 网站内部链接是网站搜索引擎优化的重要部分,好的内链有利于搜索引擎抓取更多的网页。下列关于频道页面的内部链接描述错误的是() ["频道页面应该链接到本频道下的栏目页面","频道页面必须链接到其他频道及栏目下的内容页","频道页面必须链接到本频道所有栏目下的所有内容页面","频道页面必须链接到其他所有频道下的栏目页"] 证据材料 在中性或碱性溶液中,由于氢离子的浓度小,不太活泼的金属在有氧的溶液中的极反应往往是() ["吸氧腐蚀","析氢腐蚀","应力腐蚀","局部腐蚀"]

1. public class test { 
2. public static string output = “” 
3.   
4. public static void foo(int i) { 
5. try { 
6. if(i= =1) { 
7. throw new Exception (); 
8. } 
9. output += “1”; 
10.} 
11. catch(Exception e)  { 
12. output += “2”; 
13. return; 
14.} 
15. finally ( 
16. output += “3”; 
17. ) 
18. output += “4”; 
19. }
20.   
21. public static void main (string args[])  ( 
22. foo(0); 
23. foo(1); 
24.   
25. ) 
26. }
What is the value of the variable output at line 24?()

参考答案:

  参考解析

本题暂无解析

在线 客服