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 use of servlet wrapper classes?
What do you mean by httpservlet?
What are the different mode that servlets can be used?
Which is better jsp or servlet?
What is a generic servlet?
What is life cycle of Servlet?
How printwriter is different from servletoutputstream?
Which interface should be implemented by all servlets?
What do you understand by mime type?
Explain the difference between servlet and cgi?
Given the request path below, which are context path, servlet path and path info?
What is the directory structure of a war file?
What are the differences between the servletconfig interface and the servletcontext interface?
What is difference between cookies and httpsession?
What is the functionality of actionservlet and requestprocessor?