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

What is the use of servlet context?

537


What is getservletcontext?

553


Why is a constructor needed in a servlet even if we use the init method?

612


What is a cookie What is the difference between session and cookie

599


What are the difference between RMI and Servlets?

1054






What is servlet used for?

698


What are the types of servlet?

671


Is servlet thread safe?

527


What is the difference between forward () and sendredirect () functions in servlet? Explain

551


What is session tracking?

699


Can you explain in detail 'javax.servlet' package?

551


Explain mvc pattern.

594


Which event is fired at the time of project deployment and undeployment?

794


What is servlet and list its types?

546


What is a servlet context object?

628