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.
Loading...
Related Quiz
- In a chat application using WebSockets, when a message is sent to a closed connection, what happens and how should it be handled?
- What is the difference between filter chaining and servlet chaining?
- The method __________ is called to start asynchronous processing in a servlet.
- How can a filter chain be used to implement security checks in a web application?
- Consider a servlet that initiates a long-running task asynchronously. What happens to the request thread during this task?