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 servlet and its advantages?

1108


What are sessions in servlets?

1113


What do you mean by httpservlet and how it is different from the genericservlet?

1125


What is the web server used for running the Servlets?

1064


What's the difference between authentication and authorization?

1204


How can we invoke another servlet in a different application?

1265


How servlet is created?

1315


How do we translate jsp?

1110


What methodology can be followed to store more number of objects in a remote server?

2318


What are the life-cycle methods for a servlet?

1050


Is it good idea to create servlet constructor?

1300


What are the advantages of servlets over traditional cgi?

1145


What are the common methods that are included in the http servlet class?

1084


Explain get and post.

1161


Define servlet mapping?

1221