title: UnsupportedOperationException - Why can't you call toInstant() on a java.sql.Date?
body: <p>The <code>java.util.Date</code> class has a method called <code>toInstant()</code> that converts the <code>Date</code> instance to a <code>java.time.Instant</code>.</p>
  
  <p>The <code>java.sql.Date</code> class extends the <code>java.util.Date</code> class, but when I attempt to call <code>toInstant()</code> on a <code>java.sql.Date</code>, I receive an <code>UnsupportedOperationException</code>.</p>
  
  <p>Why is <code>toInstant()</code> an unsupported operation on <code>java.sql.Date</code>?</p>
  
  <p>And what is the "correct" way to convert a <code>java.sql.Date</code> to a <code>java.time.Instant</code>?</p>