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
Explain the features are in servlet 3?
How do you find out what client machine is making a request to your servlet
What are the ways to handle multi-threading in servlets?
What is called a session?
What are the benefits of using servlet over cgi?
When servlet object is created?
How to create war file?
What’s the use of the servlet wrapper classes??
Tell the new features added in servletrequest interface i.e. Servlet 2.4
How can we upload the file to the server using servlet?
What's the advantages using servlets than using cgi?
What methods do you use in servlet - applet communication?
What is the major difference between context parameter and context attribute?
Explain the difference between servlet and cgi?
What do you mean by servlet?