Unhandled exception type SQLException 异常

来源:互联网 发布:房屋框架设计软件 编辑:程序博客网 时间:2024/05/01 11:02
请问是否是编译期出的问题,不是catch的问题
这个错误是指:你有一个方法会抛出异常,但是你没有捕捉。程序改成如下就好了: public class Example8_4 {  try {   method();  } 
catch (Exception e)
 {   e.printStackTrace();
  }
0 0