title: how to get true or false using execute() in Java Statement
body: <p>I have <strong>Statement</strong> object called <strong>stmt</strong>, Connection object <strong>conn</strong>.</p>
  
  <pre><code>stmt = conn.createStatement();
  boolean b = stmt.execute("INSERT INTO employee VALUES('E001', 'Smith')")
  </code></pre>
  
  <p>But this always produce <strong>false</strong>. I want <strong>true</strong> if above query executed successfully and <strong>false</strong> if the query fails executing. How can I achieve that result using <strong>execute()</strong> method.</p>