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 methodology can be followed to store more number of objects in a remote server?

2225


Explain servlet.

1005


What do you mean by the servlet chaining?

1018


What are different ways for servlet authentication?

1056


What are the key methods that are involved in processing of http servlets?

1060


Why session tracking is needed?

989


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1045


What are some disadvantages of storing session state in cookies?

979


What is the use of attribute in servlets?

1009


Can you use javascript in servlets?

1031


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

999


What is the difference between context parameter and context attribute?

982


What is a servlet?

1088


What is the capacity the doget can send to the server?

1032


What is the difference between CGI and Servlet?

1018