I have Statement object called stmt, Connection object conn.
stmt = conn.createStatement();
boolean b = stmt.execute("INSERT INTO employee VALUES('E001', 'Smith')")
But this always produce false. I want true if above query executed successfully and false if the query fails executing. How can I achieve that result using execute() method.