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 / abc

you can write as like for regular class.

Is This Answer Correct ?    10 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by chaining in servlet?

1039


What is meant by a servlet?

1104


What is the difference between context parameter and context attribute?

1050


What are the mechanisms used by a servlet container for maintaining session information?

1028


What is the difference between sendredirect() and forward() in a servlet?

1019


What is difference between PrintWriter and ServletOutputStream?

1294


How servlet is created?

1215


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1252


What's the servlet interface?

1084


How can you create a session in servlet?

1146


Why doesn’t a servlet include main()? How does it work?

1160


Can filter be used as request or response?

971


What is the process for chaining servlet?

1054


Can we fetch the attributes related to a servlet on a different servlet?

1148


How will you pass values from HTML page to the servlet?

1053