注意:此页面搜索的是所有试题
题目内容
(佳木斯大学语言治疗学)
以下程序运行结果是( )public class Ex20 { public int div(int a, int b) { try { retura / b; }catch (ArithmeticExceptioe) { System.out.print(" ArithmeticExceptio"); }catch(Exceptioe){ System.out.print(" Exception"); } finally { System.out.print("finally"); } retur0; } public static void main(String[] args) { Ex20 demo = new Ex20();System.out.print(" 商是:" + demo.div(9, 0)); }}
·Exceptiofinally 商是:0
·ArithmeticExceptiofinally 商是:0
·finally商是:0
·编译报错
·Exceptiofinally 商是:0
·ArithmeticExceptiofinally 商是:0
·finally商是:0
·编译报错
参考答案