how a servlet is instantiated, whether the container calls
init() or by calling any other method? please somebody reply..

Answer Posted / harikumar

if we deploy our web root dir in webapps , then we call url
from the browser.
then after loading , it calls the init() method first.
There r two tow init() methods(first init() & second init
()).

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to generate the server side programming and the advantages of it over the other languages?

563


What is a servlet-to-servlet communcation?

648


What is api in servlet?

525


How do I use cookies to store session state on the client?

536


What is the use of servletconfig interface?

557






What is the difference between 2 types of servlets?

648


Where do you define dispatcherservlet?

552


Name the different ways of session tracking.

569


Which java application server is the best?

548


What is servletconfig?

547


When servlet object is created?

604


Describe some assignments that are executed by servlet container?

585


What are important features of Servlet 3?

597


What is the use of attribute in servlets?

542


How do I support both get and post from the same servlet?

696