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 java framework is most popular?
Explain the custom jsp tags and the beans.
What is the type of method for sending request from http server?
Explain the difference between servlet and cgi?
How to get the server information in a servlet?
What are the advantages of servlets over traditional cgi?
How do you communicate in between Applets and Servlets?
Explain how to improve Servlet Performance?
Describe servlet?
What are the differences between servlet context vs servlet config?
How do I use cookies to store session state on the client?
What are the advantages of Servlet over CGI?
What is difference between jsp and servlet?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
Explain the concept of ssi ?