Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which httpsession object is used to view and manipulate information about a session?

1187


What is the functionality of actionservlet and requestprocessor?

1092


What is a servlet-to-servlet communcation?

1181


What is cookie in servlet?

1060


What is http servlet in java?

1074


Explain the role of dispatcherservlet and contextloaderlistener.

1200


How do we go with database connection and log4j integration in servlet?

1175


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

1051


Can filter be used as request or response?

974


What are life cycle methods of a servlet?

1063


What are the servlet events?

1055


Differentiate between the get and post method

1068


What are the functions of an intercepting filter?

951


What is the directory structure of a war file?

1170


What is servlet container. how it works?

1138