为了账号安全,请及时绑定邮箱和手机立即绑定

InputMismatchException、ArithmeticException

InputMismatchException、ArithmeticException、Exception有什么区别?

正在回答

1 回答

Exception是其他两个的父类,InputMismatchException、ArithmeticException是它的子类,InputMismatchException是输入不匹配的异常比如用字符去到数字计算,ArithmeticException是出现异常的运算条件,会出现by zero等就是零做除数,老师课上有说的你可以去前面听一下

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

InputMismatchException、ArithmeticException

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号