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 / karnbakar
as a programmer u cant create object for servlet ,container
invokes default constructor of the servlet
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How would you create deadlock on your servlet?
What is a servlet-to-servlet communcation?
What do you mean by a filter and how does it work?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is context in servlet?
Which event is fired at the time of project deployment and undeployment?
Is dispatcher servlet a singleton?
Explain session tracking and its importance?
What is meant by cookies?
How can we create deadlock situation in servlet?
What is the difference between the servlets and cgi programs?
Can servlet have a constructor ?
What exactly are the functions of servlet?
How to notify an object in session when session is invalidated or timed-out?