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 servlet? Explain

0 Answers  


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.

1 Answers  


If you want to modify the servlet,will the Webserver need to be ShutDown ?

9 Answers  


How to get the IP address of client in servlet?

0 Answers  


What is called Scriptlet?

0 Answers  


Given the request path below, which are context path, servlet path and path info?

0 Answers  


What is the first statement in jsp page.

7 Answers   L&T,


Explain the difference between generic servlet and http servlet?

0 Answers  


Explain the role of dispatcherservlet and contextloaderlistener.

0 Answers  


How servlet is created?

0 Answers  


What is servlet container?

0 Answers  


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

0 Answers  


Categories