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 is the methods of generated servlet?
What is a java servlet?
Explain url encoding?
Why doesn’t a servlet include main()?
What do you mean by web applications? Explain web application directory arrangement?
What is URL Encoding?
How do you deal property files in servlet?
How do cookies work in servlets?
What is the difference between genericservlet and httpservlet
What is the major difference between servlet and applet?
Should I override the service() method?
What is difference between GenericServlet and HttpServlet?
Is tomcat a servlet container?
Which is better jsp or servlet?
Tell the new features added in servletrequest interface i.e. Servlet 2.4