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

Which httpsession object is used to view and manipulate information about a session?

939


How to get the path of servlet in the server?

719


What is the directory structure of a war file?

899


What are the different methods involved in the process of session management in servlets?

897


What are the life cycle methods of a servlet?

772


What if you need to span your transaction across multiple servlet invocations?

793


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

1045


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2336


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

768


What is getservletcontext?

723


Explain servlet life cycle?

824


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

804


How forward () method is different from send redirect () method?

706


Why are servlets used?

735


What is java servlet?

790