You cant if it is not a select query.
This is what said in the doc
Returns:
true if the first result is a ResultSet object; false if it is an update count or there are no results`.
You will get a result set when you give a select query not when insert or update, you will get false always in case of these type of query .
Now to make it sure if its run successfully or not i guess working with e Exceptions
will help you
Using executeUpdate()
will give you the row count so you can use that to predict.