题目
A.I have an appointment at 6 pm.
B.I would love to, but I have to attend basketball training tonight; maybe next time.
C.Look I need to talk to our professor.
第1题
第2题
{
public static String output = "";
public static void foo(int i)
{
try { if(i==1)
{
throw new Exception ();
}
output += "1";
}
catch(Exception e)
{
output += "2";
return;
}
finally
{ output += "3"; } output += "4";
}
public static void main (String args[])
{
foo(0);
foo(1);
System.out.println(output);
}
}
第3题
第4题
public static String output= ";
public static void foo(int i)
try { if(i==1)
throw new Exception ():
output +=“1";
catch(Exception e)
output += "2";
return;
finally
{ output += "3";} output += "4";
}
public static void main (String argsD)
{
foo(0);
foo(1);
System.out.println(output);
}
}
第5题
第6题
A.123
B.234
C.1234
D.编译失败
第7题
第8题
A.sum=10 程序结束
B.sum=10
C.数组越界 程序结束
D.数组越界
第9题
A.123
B.234
C.1234
D.编译失败
第10题
A.123
B.234
C.1234
D.编译失败
第11题
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!