• 2022-05-28
    以下程序的执行结果是?()public static void main(String[] args) {// TODO 自动生成的方法存根try{methodA();}catch(IOException e){System.out.print("你好");}finally{System.out.print(" fine thanks.");}System.out.print(" end");}public static void methodA()throws IOException{System.out.print(" ok ");throw new IOException();}}
    A: ok 你好 fine thanks. end
    B: 你好 fine thanks. end
    C: ok 你好 end
    D: ok 你好 fine thanks.
  • 举一反三