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 cgi and what are its drawbacks?

728


What do you mean by cgi and what are its drawbacks?

713


How to read request headers from servlets?

786


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

764


What is servlet and its life cycle?

802


Explain the architechure of a servlet?

811


What is servlet in tomcat?

767


What is the main purpose of java servlets?

776


What are all the ways for session tracking?

808


What are the steps involved in placing a servlet within a package?

821


How can we create deadlock situation in servlet?

1052


Can you explain in detail 'javax.servlet' package?

748


Why is http protocol called as a stateless protocol?

723


What are all the advantages of servlet over cgi?

788


What is servlet initializer?

686