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
Can you refresh servlet in client and server-side automatically?
What is the difference between Difference between doGet() and doPost()?
What do you mean by request dispatcher in servlet? Also explain its methods.
How the servlet is loaded?
What are its drawbacks of cgi?
What is difference between GenericServlet and HttpServlet?
How to get the server information in a servlet?
What exactly is a servlet?
How many servlet objects are created?
What is the difference between sendredirect() and forward() in a servlet?
How do you deal property files in servlet?
Why don't we write a constructor in a servlet?
What is the difference between portlet and servlet?
Which HTTP method is non-idempotent?
Why are servlets used?