title: ExecuteQuery() vs getResultSet() in Java
body: <p>What is the difference between <code>statement.executeQuery</code> and <code>statement.getResultSet()</code>. I believe both will return <code>ResultSet</code> for a select statement but are there any specific criteria when we should use which of them.</p>