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 sessions in servlets?

574


What exception should be thrown when servlet is not properly initialized?

553


How do you define a servlet?

523


Define context initialization parameters.

572


What’s the difference between genericservlet and httpservlet?

526






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

696


How do we share data using 'getservletcontext ()?

541


What's the advantages using servlets than using cgi?

556


Why the concept of single thread model interface is used?

549


Explain servlet life cycle?

613


What is life cycle of Servlet?

605


What is MIME Type?

661


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

538


What are the differences between servlet context vs servlet config?

575


Can we get PrintWriter and ServletOutputStream both in a servlet?

656