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 / gaurav agrawal
If we initialize the servlet via constructor then we cant
access the ServletConfig object at the time of
initialization.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which httpsession object is used to view and manipulate information about a session?
What is the functionality of actionservlet and requestprocessor?
What is a servlet-to-servlet communcation?
What is cookie in servlet?
What is http servlet in java?
Explain the role of dispatcherservlet and contextloaderlistener.
How do we go with database connection and log4j integration in servlet?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
Can filter be used as request or response?
What are life cycle methods of a servlet?
What are the servlet events?
Differentiate between the get and post method
What are the functions of an intercepting filter?
What is the directory structure of a war file?
What is servlet container. how it works?