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

No..not at all,,,,servlet is a class which is dynamically
loaded...dynamically loaded class never requires
constructors.

Is This Answer Correct ?    8 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1078


What are the type of protocols used in httpservlet?

1096


Explain the lifecycle of a servlet?

986


What's the use of servletcontext?

1152


How we can get ip address of client in servlet?

1002


When should you prefer to use doget() over dopost()?

1167


Where do you define dispatcherservlet?

1061


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1155


How printwriter is different from servletoutputstream?

1026


What is the procedure for initializing a servlet?

1050


What are the advantages of Servlet over CGI?

1159


How to get the current httpsession object?

1134


What's the architecture of a servlet package?

1065


Can we refresh servlet in client and server side automatically?

1073


How we can create war file in servlet?

1140