title: Difference between ResultSet TYPE_SCROLL_SENSITIVE and TYPE_SCROLL_INSENSITIVE
body: <p>I am trying to understand the difference between these two methods of creating a statement:</p>
  
  <h2>1:</h2>
  
  <pre><code>Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
  </code></pre>
  
  <h2>2:</h2>
  
  <pre><code>Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
  </code></pre>
  
  <p>second argument are same but first - different </p>
  
  <p>from java doc:</p>
  
  <blockquote>
    <p><code>resultSetType</code> - a result set type; one of <code>ResultSet.TYPE_FORWARD_ONLY</code>, <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, or <code>ResultSet.TYPE_SCROLL_SENSITIVE</code></p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p><code>TYPE_SCROLL_INSENSITIVE</code><br>
    The constant indicating the type for a <code>ResultSet</code> object that is scrollable but generally not sensitive to changes to the data that underlies the <code>ResultSet</code>.</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><code>TYPE_SCROLL_SENSITIVE</code><br>
    The constant indicating the type for a <code>ResultSet</code> object that is scrollable and generally sensitive to changes to the data that underlies the <code>ResultSet</code>.</p>
  </blockquote>
  
  <p>Thus I want to show difference between sensitivity of underlies the <code>ResultSet</code>. I want to understand what this "sensitive to changes to the data that underlies the <code>ResultSet</code>" (from Javadoc) means.</p>
  
  <p>Please provide an example that demonstrates and explains the difference.</p>