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

that is one of the specification rule that
1.instantiated by constructior with no argument.
2.implementd class should be public and non-abstract.
3.should be implemnt javax.servlet.Servlet
We can Write it

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

1054


What if you need to span your transaction across multiple servlet invocations?

1095


How to commuincate between an applet and a servlet?

1061


What's the use of servletcontext?

1148


Does servlet have main method?

1201


Is java servlet still used?

1059


Explain servlet events?

1024


what is multiple server?

2321


What is getservletcontext?

1086


What are the uses of servlet and what is servlet chaining?

1099


What is http servlet in java?

1078


What do you mean by a filter and how does it work?

963


what do you understand by url rewriting?

967


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

1013


How to make sure a servlet is loaded at the application startup?

1052