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
What is the process for chaining servlet?
What do you mean by session tracking?
What are the jobs performed by servlets?
What are the types of protocols supported by httpservlet ?
What is difference between GenericServlet and HttpServlet?
What are the drawbacks of cgi?
What is httpservlet class?
How to get the IP address of client in servlet?
What is cookie in servlet?
Differentiate between the get and post method
Difference between GET and POST?
What are all the advantages of servlet over cgi?
What are the functions of an intercepting filter?
Can we override servlet service method?
What is a generic servlet?