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 / sekhar babu

yes, we can write constructor on our own but it should be
no argument public constructor only, cause container will
create the object so it needs no argument constructor.

Is This Answer Correct ?    22 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which application server is best for java?

1021


What is preinitialization of a servlet?

973


Can you explain in detail 'javax.servlet' package?

936


Which method of the httpservletrequest object is used?

1015


Describe the phases of servlet lifecycle?

1028


What is getservletcontext?

988


What is api in servlet?

964


What do you mean by request dispatcher in servlet? Also explain its methods.

1092


Explain the steps involved in placing a servlet within a package?

990


What is the difference between portlet and servlet?

938


What are the types of an http request?

1085


Whether we can get deadlock situation in servlets?

1010


What is Servlets and explain the advantages of Servlet life cycle?

1037


What is the difference between using getSession(true) and getSession(false) methods?

987


What is servlet initializer?

915