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

we cann't write a constructor because the servlet container
will create the instance of the servlet by calling the
no-arg constructor

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions of Servlet container?

1071


What is meant by a web application

976


Which method of the httpservletrequest object is used?

1021


What is Servlet API used for connecting database?

1053


How to generate the server side programming and the advantages of it over the other languages?

949


What is the servlet?

1047


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

1169


What do you mean by singlethreadmodel interface?

1000


Explain the difference between jsp and servlet?

1010


What is httpservlet and how it is different from genericservlet?

1043


Can you refresh servlet in client and server-side automatically?

1035


What methods do you use in servlet - applet communication?

996


Explain request dispatcher and its methods.

949


What is difference between cookies and httpsession?

1039


When a servlet accepts a call from a client, it receives two objects. What are they?

1195