Similarities :
The similarities between execute and executeUpdate: both can perform addition, deletion, and modification
difference:
1:
execute can execute the query statement
and then through getResultSet, the result set is taken out and
executeUpdate cannot execute the query statement
2:
execute returns a boolean type, true means the query statement is executed, false means insert, delete, update, etc.
executeUpdate returns Is an int, which indicates how many pieces of data are affected