Which method the Servlet container call to create the
instance of the servlet?
Answer Posted / ravikiran(aptech mumbai)
After The successfull parsing of web.xml container will find
the particular class name which is mapped in web.xml and calls
class.forName(classname).newInstance() method.Then calls
init(ServletConfig config) of GenericServlet for
initializing the instance of the servlet.
| Is This Answer Correct ? | 35 Yes | 1 No |
Post New Answer View All Answers
What is the difference between context parameter and context attribute?
What do you mean by request dispatcher in servlet?
How can we implement a jsp page?
What is the difference between genericservlet and httpservlet
The code in a finally clause will never fail to execute, right?
What are the different methods involved in the process of session management in servlets?
What is the use of httpservletresponsewrapper?
Why do we use sendredirect() method?
What is Client-Server Computing?
What is the advantage of Servlets when compared with other server side technologies?
What are the differences between the servletconfig interface and the servletcontext interface?
Explain url encoding in servlet?
What is the process to implement doget and dopost methods?
Explain how to improve Servlet Performance?
What is httpservlet class?