摘要: //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng /** * Created by Administrator on 2014/9/28. * * 多异常的声明与处理 * * 声明异常时要声明具体的异常,并且要有具体的处理方式。 * 声明两个异常,... 阅读全文
posted @ 2014-09-28 16:45 liupengcheng 阅读(128) 评论(0) 推荐(0) 编辑
摘要: //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng /* * 异常的处理 * try * { * 需要被检测的代码 * } * catch(异常类 变量) * { ... 阅读全文
posted @ 2014-09-28 15:20 liupengcheng 阅读(185) 评论(0) 推荐(0) 编辑