What are the exceptions thrown by Servlets?
Answers were Sorted based on User's Feedback
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 |
Answer / sachin g.
1. ServletException
2. IOException
3. ClassNotFoundException
4. SQLException
| Is This Answer Correct ? | 7 Yes | 7 No |
Answer / madhuri
servlet can thrown any type of unchecked Exception
| Is This Answer Correct ? | 0 Yes | 3 No |
what is OOAS
Can we write a constructor for a Servlet class ? if yes how ? if no why not ?
What is the difference between the http servlet and generic servlet?
why we should override only no-agrs init() method.
how to use servlets with j2ee ?
What's the advantages using servlets than using cgi?
What do you mean by cgi in servlet?
Describe some assignments that are executed by servlet container?
What is the difference between servlet config and servlet context.
19 Answers TCS, Tech Mahindra, Vertex,
What is the use of request dispatcher interface?
Can we override servlet service method?
What is the web server used for running the Servlets?