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 is the difference between?when we write the code in following manner? class One extends httpservlet { } and class One extends genericservlet { }
What is the dispatcher servlet?
If you want to modify the servlet,will the Webserver need to be ShutDown ?
Write a program to show the functionality of doget and dopost method?
What are the mechanisms used by a servlet container for maintaining session information?
Hi friends am newbie to servlet. How code reusability easy in servlet. why not in jsp . here reusabillity means only javabeans or any thing else.
how the jsp page can be regenerated?
How to notify an object in session when session is invalidated or timed-out?
When should you prefer to use doget() over dopost()?
What is difference between jsp and servlet?
What is the disadvantage of cookies?