Hi guys.. Well can u tell me that why there is need of
"init()" , i mean why can not we initialize the servlet object
with the help of constructors?
Thank you.
Answer Posted / archana
When u create a servlet with a constructor it wont be a
complete servlet but will be in a akward state where it
cannot access Servlet Context and Config.It has to go
through the init() method (though we dont know what code is
written there) to be a complete servlet
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the servlet filter.
List some life cycle methods of a servlet.
Explain the different ways for servlet authentication?
What is the purpose of requestdispatcher interface?
What do you mean by the servlet chaining?
What is difference between jsp and servlet?
What do you mean by scope object and what are its types?
What is the directory structure of a war file?
How can you start a jta transaction from a servlet deployed on jboss?
How to find whether a parameter exists in the request object?
Describe servlet?
What are the different session tracking techniques?
How the servlet is loaded?
What is meant by Servlet? What are the parameters of service method?
What methodology can be followed to store more number of objects in a remote server?