下面程序的运行结果是( ) public class Demo { public static void main(String[] args) { try { System.out.println(10 / 0); } catch (RuntimeException e) { System.out.println("RuntimeException"); } catch (ArithmeticException e) { System.out.println("ArithmeticException"); } } }

发布于 2021-04-19 15:35:25
【单选题】
A 编译失败
B 编译通过,没有结果输出
C 输出:RuntimeException
D 输出:ArithmeticException

查看更多

关注者
0
被浏览
64
  • 体验AI问答!更聪明、超智能!
  • 一款基于GPT的超级AI助手,可以对话、创作、写文案!
隔壁老樊
隔壁老樊 2023-04-19
一份耕耘,一份收获,付出就有回报永不遭遇过失败,因我所碰到的都是暂时的挫折。
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

手机
浏览

扫码手机浏览

分享
好友

在线
客服