Statement.ececute() will return true if the first result is a ResultSet object, false if it is an update count or there are no results
You can use
int executeUpdate(String sql)
returns
1) the row count for SQL Data Manipulation Language (DML) statements
or
2) 0 for SQL statements that return nothing
Docs