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 API used for connecting database?

0 Answers  


What are the types of Session Tracking ?

0 Answers  


What is meant by session? Tell me something about httpsession class?

0 Answers  


What is ServletContext() and what is its use?

9 Answers   Prime Technology, TCS,


Tell us something about servletcontext interface.

0 Answers  






Explain the features are in servlet 3?

0 Answers  


How values can be passed from HTML page to servlet?

7 Answers   ABC,


What is the advantage of Servlets when compared with other server side technologies?

0 Answers  


How does tomcat servlet container work?

0 Answers  


Differentiate between the get and post method

0 Answers  


What are the important functions of filters?

0 Answers  


Explain request dispatcher and its methods.

0 Answers  


Categories