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 is the methods of generated servlet?

1161


What is a java servlet?

1002


Explain url encoding?

941


Why doesn’t a servlet include main()?

985


What do you mean by web applications? Explain web application directory arrangement?

917


What is URL Encoding?

1100


How do you deal property files in servlet?

1014


How do cookies work in servlets?

997


What is the difference between genericservlet and httpservlet

1021


What is the major difference between servlet and applet?

944


Should I override the service() method?

1042


What is difference between GenericServlet and HttpServlet?

1066


Is tomcat a servlet container?

980


Which is better jsp or servlet?

977


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1117