题目详情
单选题 下面程序执行结果是( ). public class A{ public static void main(String args[]){ int a=10,b=0,c=0; try{ c = a/b; } catch(ArithmeticException e){ b++; System.out.println(a/b); } } }
A. 没有finally语句,无法编译通过
B. 程序正常运行,但不输出结果
C. 程序出现异常
D. 程序正常运行,并输出10
学科:Java语言程序设计
时间:2025-05-28 11:28:41
相关题目
相关作业