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 |
Explain the difference between servletconfig and servletcontext in servlet?
Hi guys.. Well can u tell me that why there is need of "init()" , i mean why can not we initialize the servlet object with the help of constructors? Thank you.
How can the referrer and the target urls be used in servlet?
How to run a servlet program?
Elucidate servlet attributes and its scope?
What is a cookie What is the difference between session and cookie
how can we execute servelt? what the use ".war" or ".jar" file creation
Explain in detail about applet to servlet communication?
Which java framework is most popular?
How does Cookies work in Servlets?
What is the type of method for sending request from http server?
How can we invoke another servlet in a different application?