What are the exceptions thrown by Servlets?
Answer Posted / tulasivani
The Expceptions thrown by the servlet can be in two
exception classes
1.Servlet Exception
public ServletException();
public ServletException(String message);
public Throwable getRootCause()
2.Servlet Unavailable Exception
public class UnavailableException extends ServletException
public UnavailableException(String message);
public UnavailableException(String message, int seconds);
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What are the advantages of cookies?
Difference between forward() method and sendredirect() method ?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
How we can call a jsp from the servlet?
Differentiate between the web server and application server?
How to get the IP address of client in servlet?
what is servlet chaining?
What is the difference between 2 types of servlets?
What is cookies in servlet with example?
How do we translate jsp?
What are the benefits of using servlet over cgi?
Explain load on start-up and its importance?
What is api in servlet?
Whats the advantages using servlets over using CGI?