What happens if the init() method of a Servlet throws an exception?
- Servlet becomes inactive
- Servlet continues to initialize
- Servlet fails to initialize
- Servlet restarts
If the init() method of a Servlet throws an exception, the servlet fails to initialize, and the servlet container may mark the servlet as unavailable.
Loading...
Related Quiz
- To listen for events related to a specific attribute in a session, implement the interface ___________.
- How does Java's heap memory management differ from stack memory management?
- How does a filter modify the response of a servlet or JSP in the filter chain?
- How do you handle transaction management when using PreparedStatement and CallableStatement?
- What is a CallableStatement used for in JDBC?