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 |
Explain url encoding in servlet?
Explain the difference between get and post method in servlet?
How can you use a servlet to generate a plain text instead of html?
How are Sessions are more advantage than using of Cookies or URLReWriting?
can i call init() method in destroy() method of servlset. ?
Why is a constructor needed in a servlet even if we use the init method?
Is that servlet is pure java object or not?
Explain the working of service() method of a servlet.
What compiler do not do if we create our own constructor?
what are the different services provided by the web server?
What is difference between server and servlet?
Can you send an authentication error from a servlet?