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

Answer Posted / ravikiran.chd

no beofre the init() method call the servlet instantiation
happens while the container calls the no-arg constructor of
the servlet

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different Authentication options available in Servlets.

571


How does java thread pool work?

550


Explain request dispatcher and its methods.

591


What is cgi?

602


Which http method is said to be non-idempotent and idempotent?

610






Write a command to get actual path of a servlet to the server?

541


What is the life-cycle of servlets?

638


How does Cookies work in Servlets?

653


Why is Servlet so popular?

618


What is servlet container. how it works?

617


What's the servlet interface?

598


When a servlet accepts a call from a client, it receives two objects. What are they?

771


Explain the difference between servletconfig and servletcontext in servlet?

577


What is difference between server and servlet?

581


Explain the working of service() method of a servlet.

508