title: What is the difference between executeNonQuery() and executeUpdate() in java?
body: <p>I had read about <code>executeNonQuery()</code> and <code>executeUpdate()</code> methods in java. But could not understand any difference among them.
  It says return type of  <code>executeUpdate()</code> is an int that indicates the <code>number of rows</code> affected, or <code>0</code> if using a <code>DDL statement</code>, and is used to Runs the given SQL statement, which can be an <code>INSERT</code>, <code>UPDATE</code>, or <code>DELETE statement</code>; or an <code>SQL statement</code> that returns nothing, such as an <code>SQL DD</code>L statement.</p>
  
  <p>same is what I read about <code>executeNonQuery()</code> method.</p>
  
  <p>So what is the difference between these two methods?</p>