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

Elucidate servlet attributes and its scope?

659


What is the disadvantage of cookies?

655


Name the different ways of session tracking.

657


explain the advantages of servlet life cycle?

636


What is servlet collaboration?

748






What's the architecture of a servlet package?

636


Can we use threads in Servlets?

735


What do you mean by annotations in servlet?

674


Which is the methods of generated servlet?

761


What are the features added in Servlet 2.5?

854


What is java servlet session?

608


What is httpservlet class?

631


Why doesn’t a servlet include main()? How does it work?

736


What is generic servlet class?

687


What is a servlet-to-servlet communcation?

736