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

Answer Posted / aruna

servlet is instantiated after the .class file is loaded on
the memory.Then, the instance will be initialized by calling
init()

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define the servlet mapping.

548


Can we fetch the attributes related to a servlet on a different servlet?

636


Describe some assignments that are executed by servlet container?

585


What is servlet mapping?

603


What is servlet and how it works?

508






What is the difference between a generic servlet and http servlet?

525


What exactly is a servlet?

547


Who is responsible for writing a constructor?

779


Who is responsible to create the object of servlet?

720


Differentiate between the web server and application server?

565


How are filters?

582


How can you use a servlet to generate a plain text instead of html?

594


How can you run a servlet program?

601


What is the difference between servlet and filter?

530


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

618