A.ballet
B.elle
C.menu
D.sel
写出下面程序的执行结果。
public class exception1
{
void Proc(int sel) throws ArithmeticException,ArrayIndexOutOfBoundsException
{
System.out.println("In Situation" + sel ) ;
if (sel==0)
{
System.out.println("no Exception caught");
return;
}
else if (sel==l)
{
int iArray[]=new int[4] ;
iArray [10 ] =3 ;
}
}
public static void main(String args[])
{
try {
Proc (0 ) ;
Proc (1 ) ;
}
catch (ArrayIndexOutOfBoundsException e)
{
System.out.println ("Catch"+e) ;
}
}
写出下面程序的执行结果。
public class exception1
{
void Proc(int sel) throws ArithmeticException,ArrayIndexOutOfBoundsException
{
System.out.println("In Situation" + sel ) ;
if (sel==0)
{
System.out.println("no Exception caught");
return;
}
else if (sel==l)
{
int iArray[]=new int[4] ;
iArray [10 ] =3 ;
}
}
public static void main(String args[])
{
try {
Proc (0 ) ;
Proc (1 ) ;
}
catch (ArrayIndexOutOfBoundsException e)
{
System.out.println ("Catch"+e) ;
}
}
A.RMP1上的SEL灯亮
B.RMP2上的SEL灯亮
C.RMPI和RMP2上的SEL都亮
D.所有RMP上的SEL灯都亮
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!