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 / ravikiran.chd

no the servlet config object is only available at the time
init() method call

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet looping or chaining?

897


What is the difference between using getSession(true) and getSession(false) methods?

796


What do you mean by httpservlet and how it is different from the genericservlet?

738


What is Servlet API used for connecting database?

813


Explain the concept of ssi ?

789


What is servlet attributes and their scope?

781


What is difference between get and post method?

764


List out difference between a JavaBean from a Servlet?

740


What is the directory structure of a war file?

901


What are the exceptions thrown by servlets? Why?

837


How to get the IP address of client in servlet?

822


How can a servlet be used to generate plain text instead of html?

741


What are different methods of session management in servlets?

1000


What is http servlet?

789


What is the difference between Server and Container?

869