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
Can you create a deadlock condition on a servlet?
What are the different ways we can maintain state between requests?
Can filter be used as request or response?
how many jsp scripting elements are there and what are those?
Which interface should be implemented by all servlets?
Why HttpServlet class is declared abstract?
Define servlet mapping?
Why servlet is faster than jsp?
What do you mean by session tracking and also explain its techniques?
What is servlet and its life cycle?
What’s the difference between genericservlet and httpservlet?
Difference between GET and POST?
Explain servlet events?
What's the use of servletcontext?
Describe the phases of servlet lifecycle?