




已阅读5页,还剩21页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
class java.lang.throwable class java.lang.error (重的,但不需程序捕捉的重的,但不需程序捕捉的) class java.lang.linkageerror . . class java.lang.virtualmachineerror class java.lang.internalerror class java.lang.outofmemoryerror . . class java.lang.exception(程序捕捉的程序捕捉的) class java.lang.classnotfoundexception class java.lang.runtimeexception (jvm正常运行抛出的正常运行抛出的 ) class java.lang.arithmeticexception . . class java.io.ioexception class java.awt.awtexception class java.sql.sqlexception . . import java.io.ioexception; class jex3_3 public static void main(string args) throws ioexception char c; system.out.println(“please input a char: “); c = (char)system.in.read(); system.out.println(“received char=“ + c); class jex7_9 public static void main(string args) int a = 0; int b = 24/a; java jex7_9 exception in thread “main“ java.lang.arithmeticexception: / by zero class jex7_9 public static void main(string args) int i = integer.parseint(args0); system.out.println(i); java jex7_9 exception in thread “main“ java.lang.arrayindexoutofboundsexception: 0 java jex7_9 a exception in thread “main“ java.lang.numberformatexception: for input string: “a” class test public static void main(string args) char c = (char)system.in.read(); system.out.println(c); import java.io.ioexception; class test public static void main(string args) try char c = (char)system.in.read(); system.out.println(c); catch (ioexception e) system.out.println(e); unreported exception java.io.ioexception; must be caught or declared to be thrown char c = (char)system.in.read(); import java.io.ioexception; class test public static void main(string args) try char c = (char)system.in.read(); system.out.println(c); catch (ioexception e) system.out.println(e); try . . . catch (arrayindexoutofboundsexception e) system.out.println(e); catch (ioexception e) system.out.println(e); try / the guarded region: dangerous activities / that might throw a, b, or c catch(a a1) / handler for situation a catch(b b1) / handler for situation b catch(c c1) / handler for situation c finally / activities that happen every
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年安徽机电职业技术学院高层次人才引进15人考前自测高频考点模拟试题及一套完整答案详解
- 2025年合肥市口腔医院引进高层次人才10人模拟试卷附答案详解(模拟题)
- 2025国家三门峡黄河明珠(集团)有限公司招聘高校毕业生8人模拟试卷及答案详解(典优)
- 广清区域质量安全培训课件
- 2025安徽芜湖前湾集团有限公司选聘2名模拟试卷参考答案详解
- 安全培训教室布置课件
- 2025年钢包精炼成套设备项目建议书
- 安全培训教学计划表课件
- 2025年穿水冷却装置合作协议书
- 安全培训教学开场白课件
- 医院非暴力沟通小讲课
- 2025至2030年中国山西省房地产行业发展监测及投资前景展望报告
- 产后出血及液体复苏课件
- 巡察整改进度汇报
- 水电验收现场清理方案(3篇)
- 第4课洋务运动与边疆危机(任务型导学案)(原卷版)
- 2025至2030中国棉花行业市场发展分析及前景预测与投资发展战略报告
- 消防车救火课件
- 创建文明班级班会课件
- 养猪场安全生产应急预案
- 2025年新修订治安管理处罚法课件
评论
0/150
提交评论