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 servlet attributes and their scope?

596


How the typical servlet code look like ?

639


What is meant by cookies?

617


Is tomcat a servlet container?

579


What is Client-Server Computing?

1899






What is ServletConfig object?

612


Explain the difference between get and post method in servlet?

609


What is webservlet?

539


Which application server is best for java?

560


Can you refresh servlet in client and server-side automatically?

624


How do cookies work in servlets?

583


What is servlet invoker?

602


How do I know if java is running on linux?

607


What is load-on-startup in servlet?

588


What are the types of servlets? Explain

678