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

What is webservlet?

957


What is servlet and its advantages?

1003


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

994


What is the servlet?

1047


How to make sure a servlet is loaded at the application startup?

996


How httpservlet is different from the genericservlet?

1077


Why do you use session tracking in httpservlet?

1081


How to find whether a parameter exists in the request object?

1062


Which protocol will be used by browser and servlet to communicate

1007


What is the difference between encodeRedirectUrl and encodeURL?

1070


how the HTML data stored in web server?

2565


Why is init() method is used in servlets?

967


What is the use of servlet wrapper classes?

1127


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

1132


What is servlet configuration?

1013