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
How do you define a servlet?
What is called Session Tracking?
How do I use cookies to store session state on the client?
explain the advantages of servlet life cycle?
Why doesn’t a servlet include main()?
Difference between java beans & servlets?
Explain web application directory arrangement?
What is the default http method in the servlet?
Explain request dispatcher and its methods.
Can we use the constructor, instead of init(), to initialize servlet?
How does tomcat servlet container work?
What are the different types of servlets?
How can the session in servlet be destroyed?
When Servlet is unloaded?
What do you mean by singlethreadmodel interface?