title: what is the harm of using executeQuery instead of executeUpdate for deleting rows
body: <p>In my code I am using </p>
  
  <pre><code>String query= "delete all from myTable";
  stmt.executeQuery(query);
  </code></pre>
  
  <p>Ideally for DML executeUpdate should be used instead. However, executeQuery too works well. So, was curious to know what could be the harm of using executeQuery instead of executeUpdate?</p>