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 / 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 do you mean by filter in servlet?

1061


Should I override the service() method?

1138


What is the major difference between context parameter and context attribute?

1163


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

1095


What is the need of session tracking in web application?

1082


How is an application exception handling is done using a servlet?

1057


What is the difference between Server and Container?

1305


How to get the path of servlet in the server?

1047


What are the features added in Servlet 2.5?

1317


Given the request path below, which are context path, servlet path and path info?

1096


If a servlet is not properly initialized, what exception may be thrown?

1226


Explain the architechure of a servlet?

1163


How can we create deadlock situation in servlet?

1485


What is context in servlet?

1091


What is servlet attributes and their scope?

1100