how a servlet is instantiated, whether the container calls
init() or by calling any other method? please somebody reply..
Answer Posted / ashutosh
Servlet is instantiated by servlet container by calling
method Class.forName(Servlet class name).newInstance();
First of all Servlet Container looks into the
deployment descriptor(web.xml) .It looks the definition of
Servlet.And Than instantiate it by calling
Class.forName(Servlet class name).newInstance();
Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
How the JSP file will be executed on the Server side?
What is difference between jsp and servlet?
What is a servlet context?
Which interface must be implemented by all servlets?
Explain the servlet filter.
What are the types of servlets? Explain
Why are http servlets used in programming?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is servlet api used for conneting database?
Describe some assignments that are executed by servlet container?
Can we use threads in Servlets?
What is the procedure of invoking different servlet in a different application?
What is a deployment descriptor?
Why servlet is faster than jsp?
What is pure servlet?