title: what's the difference between getInt() and new Integer(getString())?
body: <p>Assumed that <code>rs</code> is a ResultSet obtained from execution of a PreparedStatement or Statement object.
  I intended to use <code>Integer data = rs.getInt(1)</code> to extract an integer value out of the ResultSet, but my boss asked me to use <code>Integer data = new Integer(rs.getString(1))</code> or <code>Integer data = Integer.valueOf(rs.getString(1))</code> instead.
  I just don't understand why. Can anyone tell me what's the benefit of using <code>getString</code> instead of <code>getInt</code>?</p>