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 do you mean by scope object and what are its types?

0 Answers  


Can we use javascript in Servlets?

2 Answers   Wipro,


Can we use threads in Servlets?

0 Answers  


Why is Servlet so popular?

0 Answers  


What is the use of welcome-file-list?

0 Answers  






what is the difference between doGet() and doPost()?

6 Answers   TCS,


Can we use servlets in JavaScript?

2 Answers  


What do you mean by httpservlet and how it is different from the genericservlet?

0 Answers  


Can we use the constructor, instead of init(), to initialize servlet?

0 Answers  


How many Cookies can a host support?

2 Answers  


What is Client-Server Computing?

0 Answers   TCS,


What are the difference between RMI and Servlets?

0 Answers  


Categories