![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常处理
cavvv
这个作者很懒,什么都没留下…
展开
-
合理处理jdbc中的异常
对于jdbc代码段里出现的异常,可以处理则处理,无法处理则向上抛出 dao层代码public interface ClassDao { Integer addClass(ClassEntity classEntity); int[]addbatch();}daoimple代码@Override public Integer addClass(ClassEntity cla原创 2015-07-25 17:27:11 · 2526 阅读 · 0 评论 -
为什么要在catch块里写状态终止代码
public class Test2 { public static String doit() { try { BufferedInputStream bufferedInputStream = new BufferedInputStream( new FileInputStream(new File("i9i原创 2015-07-31 22:15:25 · 2485 阅读 · 0 评论