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 called a session?
What is servlet collaboration?
What is servlet api used for conneting database?
What is context in servlet?
If some new data has entered the database, explain how can a servlet refresh automatically?
What is a servlet engine?
What is the life-cycle of servlets?
What is meant by servlet? What are the parameters of the service method?
What are the advantages of servlets over traditional cgi?
What is a web application and what is it’s directory structure?
Explain the role of dispatcherservlet and contextloaderlistener.
Explain get and post.
What is the use of java servlet api?
What are the types of Session Tracking ?
What is the difference between portlet and servlet?