How do you differentiate between checked and unchecked SQL exceptions?

  • Checked exceptions are SQLExceptions
  • Checked exceptions are caught at compile-time
  • Unchecked exceptions are SQLExceptions
  • Unchecked exceptions are caught at compile-time
Checked SQL exceptions are those derived from SQLException, and they must be either caught or declared to be thrown. Unchecked SQL exceptions are those that extend RuntimeException.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *