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 / narayana rao dasari

yes.....! we can write constructor for servlet class why
because every java class allows construction initialization
if we do not write constructor explicitly it will call
default constructior.

If we call our own constructiors means we will not able to
access the servelet config objects so better wat is to
intializeing in init() method......thank u,
Narayan

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a servlet engine?

968


What are the two important api's in for servlets?

1014


What’s the use of the servlet wrapper classes??

1063


Can you create a deadlock condition on a servlet?

1023


What are the types of protocols supported by httpservlet ?

1166


Name the different ways of session tracking.

960


How do we call one servlet from another servlet?

981


What are the jobs performed by servlets?

1004


What do you mean by httpservlet?

998


Can we get PrintWriter and ServletOutputStream both in a servlet?

1102


What is the difference between a generic servlet and http servlet?

938


What are the kinds of http requests?

986


Why the concept of single thread model interface is used?

923


How do I use cookies to store session state on the client?

908


Explain the working of service() method of a servlet.

899