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 are important features of Servlet 3?

1065


When servlet object is created?

1096


What is war file?

1038


Explain how to improve Servlet Performance?

1103


What are the two important api's in for servlets?

1026


Difference between java beans & servlets?

1008


What is the GenericServlet class?

1175


What are common tasks performed by Servlet Container?

1218


What do you mean by session tracking?

1162


What is the default http method in the servlet?

1250


What are the steps that are required to handle the multi-threading?

1060


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

1004


How servlet is created?

1135


Why do we need a constructor in a servlet if we use the init method?

1001


Explain the difference between a web server and a web container?

957