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

How can the referrer and the target urls be used in servlet?

948


what is servlet chaining?

1041


What is the difference between 2 types of servlets?

1084


What is the element?

1005


What is servlet name in web xml?

950


How to create war file?

1094


Whether thread can be used in servlets?

1159


Explain jsessionid and when is it created?

1045


How can we include static files in the jsp page?

1009


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1017


What is a web container and what is its responsibility?

925


What is a servlet context object?

1093


What is the difference between get and post methods?

983


Why do we need a constructor in a servlet if we use the init method?

986


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

1114