• 2022-06-08
    下面程序运行将会输出结果( )。try{String[] lines = new String[2];for(int i=0; i<3; i++) System.out.println(lines[i].length());System.out.println(“The End”);}catch(NullPointerException e){System.out.printn(“***********”);}catch(ArrayIndexOutOfBoundsException e){System.out.println(“++++++”)}catch(Exception e){System.out.println(“==========”)}[/i]
    A: 00++++++
    B: ***********++++++==========
    C: ***********
    D: 00The End
  • 举一反三