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 / karnbakar

as a programmer u cant create object for servlet ,container
invokes default constructor of the servlet

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which exception is thrown if the servlet is not initialized properly?

582


What is a servlet context object?

617


Why don't we write a constructor in a servlet?

584


What's the architecture of a servlet package?

556


What is the difference between Server and Container?

618






What is a server side include (ssi)

566


Explain load on start-up and its importance?

594


The code in a finally clause will never fail to execute, right?

597


Can we override servlet service method?

585


Write a command to get actual path of a servlet to the server?

535


What are the different session tracking techniques?

672


What is a servlet engine?

542


What is servlet lazy loading?

691


What is the functionality of actionservlet and requestprocessor?

592


What do you mean by annotations in servlet?

578