Is the init(ServletConfig sc) throws IOException or not?

Answers were Sorted based on User's Feedback



Is the init(ServletConfig sc) throws IOException or not?..

Answer / anji

It will throw only ServletException
The method signature of init is
void init(ServletConfig config) throws ServletException

Is This Answer Correct ?    9 Yes 0 No

Is the init(ServletConfig sc) throws IOException or not?..

Answer / ravindra nhavi

it will throws only ServletException .

Is This Answer Correct ?    5 Yes 0 No

Is the init(ServletConfig sc) throws IOException or not?..

Answer / rama

init can throw UnAvailable exception or ServletException
but no IOException

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Servlets Interview Questions

What is the difference between sendredirect() and forward() in a servlet?

0 Answers  


What are setSecure() and getSecure() methods in Cookies?

1 Answers  


How does Cookies work in Servlets?

0 Answers  


what is the difference between Servlet and JSP?Advantage of JSP over Servelt?Any concept present in JSP which we cant implement in Servlet?

31 Answers   ABC, Apere, AZTEC, CTS, CybAge, iFlex, Impact Systems, Sara, TCS,


How is an application exception handling is done using a servlet?

0 Answers  






What is ServletContext() and what is its use?

9 Answers   Prime Technology, TCS,


Write a program to show the functionality of servlets.

0 Answers  


What do you mean by request dispatcher in servlet?

0 Answers  


What is meant by servlet? What are the parameters of the service method?

0 Answers  


What is filter? Can filter be used as request or response?

1 Answers  


What is servlet and list its types?

0 Answers  


What is the difference between servlet and filter?

0 Answers  


Categories