The executeUpdate(String sql) method in JDBC returns an int representing the number of rows affected by the INSERT, UPDATE, or DELETE operation. It does NOT return ResultSet (use executeQuery() for that), PreparedStatement (that's what you call the method ON), or Statement objects.