Unhandled exception type SQLException 异常

 
 
请问是否是编译期出的问题,不是catch的问题
这个错误是指:你有一个方法会抛出异常,但是你没有捕捉。程序改成如下就好了: public class Example8_4 {
  try {
   method();
  } 
catch (Exception e)
 {   e.printStackTrace();
  }

你可能感兴趣的:(异常)