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

What is servlet configuration?

1070


What is the life cycle of a servlet?

1537


What is the use of welcome-file-list?

1035


How do you design microservices?

1084


What mechanisms are used by a Servlet Container to maintain session information?

1174


What are the annotations used in servlet 3?

1040


What do you mean by default initialization in java servlet?

1101


What is Request Dispatcher?

1439


Can servlet have a constructor ?

1048


Why is servlet used?

1177


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

970


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1102


What is called Session Tracking?

1191


How do cookies work in servlets?

1051


Explain servlet.

1047