下面程序运行的结果是() class Demo{ public static void main(String[] args){ try{ int x = d
14、下面程序运行的结果是() class Demo{ public static void main(String[] args){ try{ int x = div(1,2); }catch(Exception e){ System.out.println(e); } System.out.println(x) } public static int div(int a,int b){ return a / b ; } }
A、A.输出1
B、B.输出0
C、C.输出0.5
D、D.编译失败