What are the exceptions thrown by Servlets?

Answers were Sorted based on User's Feedback



What are the exceptions thrown by Servlets?..

Answer / baskar

Servlet Exception and IOException

Is This Answer Correct ?    13 Yes 2 No

What are the exceptions thrown by Servlets?..

Answer / 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

What are the exceptions thrown by Servlets?..

Answer / sachin g.

1. ServletException
2. IOException
3. ClassNotFoundException
4. SQLException

Is This Answer Correct ?    7 Yes 7 No

What are the exceptions thrown by Servlets?..

Answer / madhuri

servlet can thrown any type of unchecked Exception

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Servlets Interview Questions

What is the capacity that doGet method can send to the server?

5 Answers  


How can you push data from an Applet to a Servlet?

0 Answers  


How can we refresh automatically when new data has entered the database?

0 Answers  


How many Cookies can a host support?

2 Answers  


What is the inter-servlet communication?

0 Answers  






What are the steps involved in placing a servlet within a package?

0 Answers  


What is a generic servlet?

0 Answers  


How can we include static files in the jsp page?

0 Answers  


what are the disadvantages of cookies?

8 Answers  


What are the supporting protocol by HttpServlet ?

0 Answers  


Write a simple servlet program to print the contents of html.

0 Answers  


Is there any differance b/w getting servlet context from servlet config and session? if yes then what is that?

7 Answers  


Categories