the problem was caused by a copy-paste mistake:
what I have made:
PreparedStatement pStmt = connection.prepareStatement(myQuery);
//.. populate the parameters
pStmt.executeQuery(myQuery);
//.. PreparedStatement extends Statement