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 |
Why HttpServlet class is declared abstract?
What's the difference between servlets and applets?
Explain the difference between get and post method in servlet?
what is the control flow in servlet when we send a request?
What is the process to implement doget and dopost methods?
How the typical servlet code look like ?
What is meant by cookies?
What is the main purpose of java servlets?
What do you mean by httpservlet and how it is different from the genericservlet?
Which application server is best for java?
What is the difference between encodeRedirectUrl and encodeURL?
What do you mean by filter in servlet?