5. String foo = “base”; 6. foo.substring(0,3); 7. foo.concat(“ket”) 8. Type the value of foo at line 8.()
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?()
广告位招租 联系QQ:5245112(WX同号)
关于我们 | 付款方式 | 广告联系 | 联系我们 | 网站地图 | 网站申明 | 友情链接 | 网站招聘 | 帮助中心
版权所有©考试资料网(ppkao.com) 长沙求知信息技术有限公司 All Rights Reserved
扫一扫免费做题