A.A
B.B
C.C
D.D
第1题:
在oneMethod()方法运行正常的情况下,程序段将输出public void test(){ try { oneMethod(); System.out.println("condition 1"); } catch(ArrayIndexOutOfBoundsException e){ System.out.println("condition 2"); } catch (Exception e) { System.out.println("condition 3"); } finally { System.out.println("finally"); }}
A.condition 1
B.condition 2
C.condition 3
D.condition 1 finally
第2题:
在oneMethod( )方法运行正常的情况下,程序段将输出什么? public void test( ){ try { oneMethod( ); System.out.println("condition 1"); } catch (ArrayIndexOutOfBoundsException e){ System.out.println("condition 2"); } catch(Exception e){ System.out.println("condition 3"); } finally { System.out.pritln("finally"); } }
A.condition 1
B.condition 2
C.condition 3
D.condition 1
第3题:
A.Cause2
B.Cause4
C.Cause7
D.Cause15
第4题:
以下语句错误的是:______ 。
A.Do while(Condition) Statements Loop
B.Do Statements Loop while(condition)
C.Do until(condition) Statements Loop
D.Do until(condition) Statements end do
第5题:
在oneMethod()方法运行正常的情况下,程序段将输出什么? ( ) public void test() { try { oneMethod(); System.out.println("condition 1"); } catch(ArrayIndexOutOfBoundsException e) { System.out.println("condition 2"); } catch(Exception e) { System.out.println("condition 3"); } finally { System.out.println("finally");
A.condition 1
B.condition 2
C.condition 3
D.condition 1 finally
第6题: