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

Explain url encoding in servlet?

996


Is tomcat a servlet container?

980


What is the GenericServlet class?

1158


Explain the difference between servletconfig and servletcontext in servlet?

989


How do you communicate in between Applets and Servlets?

1023


What is difference between cookies and httpsession?

1027


How can we refresh automatically when new data is entered into the database?

1046


What's the difference between servlets and applets?

991


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

989


How can you start a jta transaction from a servlet deployed on jboss?

1103


Why session tracking is needed?

981


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

988


Name the different ways of session tracking.

960


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

941


What are the drawbacks of cgi?

961