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...

Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?

Answer Posted / n.l.narayana

yes., when ever the servlet is executed .,it requires
configuration.,the configuration should be done in init()
method only.,

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the role of dispatcherservlet and contextloaderlistener.

1259


Explain is servlet mapping?

1061


What is the use of servletconfig interface?

1086


why we should override only no-agrs init() method.

1189


What is servlet and how it works?

1045


What's the difference between servlets and applets?

1096


What is http servlet?

1104


Why do we have servlet wrapper classes?

1115


What methods do you use in servlet - applet communication?

1095


What are the difference between session and cookies in servlet? Explain

1100


What is generic servlet class?

1121


What is servlet api used for conneting database?

1280


What is a cookie What is the difference between session and cookie

1140


What is the difference between the include() and forward() methods?

1126


Why is httpservlet declared abstract?

1179