Is the init(ServletConfig sc) throws IOException or not?
Answers were Sorted based on User's Feedback
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 |
Answer / rama
init can throw UnAvailable exception or ServletException
but no IOException
| Is This Answer Correct ? | 3 Yes | 1 No |
How can we include static files in the jsp page?
Which exception is thrown if the servlet is not initialized properly?
What are some advantages of storing session state in cookies?
What is the difference between Get and Post Method?
What is dispatcher servlet?
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?
Can you explain in detail 'javax.servlet' package?
What is filter? Can filter be used as request or response?
Why servlet is faster than jsp?
How many ways to remove the session object in the container
What is the difference between jsp and servlet life cycle?
Explain the differences between jsp and servlet.