To comply with the J2EE 1.3 standard, the DB2 JDBC driver, as of FixPak 5, no longer allows the use of a non-query statement with executeQuery, nor a query statement with executeUpdate. Attempting to do so will result in one of the following exceptions:
If the type of statement is unknown, use execute().