欢迎来到牛牛题库网 牛牛题库官网
logo

单项选择题

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.编译失败

A.out.println(e);
B.out.println(x)
C.输出1
D.输出0
E.输出0.5
F.编译失败
点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题