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
Which exception is thrown if the servlet is not initialized properly?
What is a deployment descriptor?
What is Client-Server Computing?
How is an application exception handling is done using a servlet?
What is the need of session tracking in web application?
What’s the use of the servlet wrapper classes??
Which interface should be implemented by all servlets?
What are session variable in servlets?
What are some advantages of storing session state in cookies?
What are the life cycle methods of a servlet?
What are the new features added to servlet 2.5?
How to get the actual path of servlet in server?
Explain the difference between get and post method in servlet?
Explain web container.
Is that servlet is pure java object or not?