Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / abc
you can write as like for regular class.
Is This Answer Correct ? | 10 Yes | 12 No |
Post New Answer View All Answers
What is MIME Type?
Why do we use sendredirect() method?
What is the difference between sendredirect() and forward() in a servlet?
Why the concept of single thread model interface is used?
How can the session in servlet be destroyed?
What is cookies in servlet with example?
What is servlet and its use?
What are the various ways of session supervision in servlets?
What are the common methods that are included in the http servlet class?
What are the types of Session Tracking ?
Is it possible to have a constructor inside the servlet?
What is Servlet API used for connecting database?
Explain servlet life cycle?
What exactly are the functions of servlet?
how the HTML data stored in web server?