a simple java interview question (2)

xiaoxiao2026-06-14  4

Please check the following java code ,and give the problem .

 

public class DbTest{

 

  private Connection connect=null;

    

  public void test(){    

     try{

       connect =ConnectManager.getConnection();

       Statement stat=connect.createSatement();

       stat.execute("delete  from test");

     }catch (Exception e){

         e.printStackTrace();

      } 

 

 }

 

}

转载请注明原文地址: https://www.6miu.com/read-5050146.html

最新回复(0)