摘要: 异常处理中throws和throw的区别 1>作用不同 throw:抛出异常 throws:声明异常 2>使用位置不同 throw:方法体内,可以作为单独语句使用 throws:必须跟在方法参数列表后面,不能单独使用 3>内容不同 throw:只能抛出一个异常对象 throws:后面跟异常类,而且可 阅读全文
posted @ 2021-06-21 18:14 小jun学java 阅读(374) 评论(0) 推荐(0) 编辑
摘要: IDEA中配置MySQL出现Server returns invalid timezone问题解决方法 注意!一定是shanghai!!!! 阅读全文
posted @ 2021-06-21 18:07 小jun学java 阅读(41) 评论(0) 推荐(0) 编辑