不知道的啊,你把具体的上下文给出来啊

解决方案 »

  1.   

    public static C get(String sql, Connection inConn) throws Exception{
        Statement stmt = null;
        ResultSet rset = null;
        C c = null;    try{
          stmt = inConn.createStatement();
          rset = stmt.executeQuery(sql);
          if(rset.next()){
            co = new C();        .....
          }
          rset.close();
        }catch(Exception e){
          throw e;
        }finally{
          stmt.close();
        }
        return;
      }