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 / neha rajpal
the very first step of creating the servlet is making its
object after until and unless you will not trigger the init
method it will be treated as simple object not the servlet
after triggering the init method it get the servlet config
init parameters and then only it is called as servlet so its
very imp to intiate the init method
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the procedure of invoking different servlet in a different application?
What is dispatcher servlet?
What is the difference between a generic servlet and http servlet?
Explain how to improve Servlet Performance?
What are the common methods that are included in the http servlet class?
What do you mean by default initialization in java servlet?
What is the use of welcome-file-list?
When servlet object is created?
What is context in servlet?
What do you mean by annotations in servlet?
How can a servlet be used to generate plain text instead of html?
Explain request dispatcher and its methods.
Difference between doget and dopost?
What do you mean by filter in servlet?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?