2. int executeUpdate (String str):– It execute the SQL statements and returns the number of data rows that are affected after processing the SQL statement. The executeUpdate ( ) can be used when we need to INSERT, DELETE, and UPDATE the data.
Statement stmt = con.createStatement ( );
ResultSet rs = stmt.execute(<SQL statement>);
3. Boolean execute(String str): This method execute an SQL statement and return a Boolean