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();
}
}
}