We can make an exception ()
A:in any case of John B:in case of John C:in case of John's D:in the case of John
阅读下列程序片段。
Public void test( )
Try
sayHello( );
system. out. println("hello");
catch(ArrayIndexOutOfBoundException e)
System. out. println("ArraylndexOutOfBoundException");
catch(Exception e)
System. out. println("Exception");
finally
System. out. println("finally");
如果sayHello( )方法正常运行,则test( )方法的运行结果将是______。
A:Hello B:ArrayIndexOutOfBondsException C:Exception D:Finally E:Hello F:Finally
阅读下列程序片段。
Public void test( )
Try
sayHello( );
system.out.println("hello");
catch(ArrayIndexOutOfBoundException e)
System.out.println("ArrayIndexOutOfBoundException");
catch(Exception e)
System.out.println("Exception");
finally
System.out.println("finally");
如果sayHello( )方法正常运行,则test( )方法的运行结果将是( )。
A:Hello B:ArrayIndexOutOfBondsException C:Exception D:Finally E:Hello F:Finally
阅读下列程序片段
Publicvoidtest( )
Try
sayHello( );
system.out.println(“hello");
catch(ArrayIndexOutOfBoundExceptione)
System.out.println(“ArraylndexOutOfBoundException”);
catch(Exceptione)
System.out.println(“Exception”);
finally
System.out.println(“finally”);
如果sayHello( )方法正常运行,则test( )方法的运行结果将是( )。
A:Hello B:ArraylndexOutOfBondsException C:Exception D:Finally E:Hello F:Finally
阅读下面程序
public void test( )
try
sayHello( );
System.out.println("hello");
catch(ArrayIndexOutOfBoundException e)
System.out.println("ArrayIndexOutOfBoundException");
catch(Exception e)
System.out.println("Exception");
finally System.out.println("finally");
如果sayHello( )方法正常运行,则test( )方法的运行结果将是
A:Hello B:ArraylndexOutOfBondsException C:Exception
Finally D:Hello
Finally
阅读下列程序片段。
Public void test( )
Try
sayHello( );
system.out.println("hello");
catch(ArrayIndexOutOfBoundException e)
System.out.println("ArrayIndexOutOfBoundException");
catch(Exception e)
System.out.println("Exception");
finally
System.out.println("finally");
如果sayHello( )方法正常运行,则test( )方法的运行结果将是( )。
A:Hello B:ArrayIndexOutOfBondsException C:Exception
Finally D:Hello
Finally
阅读下面程序 public void test( ) { try{ sayHello( ); System.out.println("hello"); } catch(ArrayIndexOutOfBoundException e) { System.out.println("ArrayIndexOutOfBoundException"); } catch(Exception e) { System.out.println("Exception"); } finally { System.out.println("finally");} } 如果sayHello( )方法正常运行,则test( )方法的运行结果将是
A:Hello B:ArraylndexOutOfBondsException C:Exception Finally D:Hello Finally
阅读下列程序片段
Public void test( ){
Try{
sayHello( );
system.out.println(“hello”);
} catch (ArrayIndexOutOfBoundException e) {
System.out.println(“ArrayIndexOutOfBoundException”);
}catch(Exception e){
System.out.println(“Exception”);
}finally {
System.out.println(“finally”);
}
}
如果sayHello( )方法正常运行,则test( )方法的运行结果将是()
A:Hello B:Array Index Out Of Bonds Exception C:Exception D:Finally E:Hello F:Finally