2019年2月18日
摘要: throws可以单独使用(一直上抛) throw要么和try-catch-finally语句配套使用,要么与throws配套使用 /** * 总结: * 1.throws是方法抛出异常。如: public int method() throws Exception{//code.....} * a. 阅读全文
posted @ 2019-02-18 10:47 做个快乐的自己 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 转自:https://jingyan.baidu.com/article/c35dbcb0f4315b8917fcbc47.html 阅读全文
posted @ 2019-02-18 10:44 做个快乐的自己 阅读(134) 评论(0) 推荐(0) 编辑