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 do you mean by chaining in servlet?
What is meant by a servlet?
What is the difference between context parameter and context attribute?
What are the mechanisms used by a servlet container for maintaining session information?
What is the difference between sendredirect() and forward() in a servlet?
What is difference between PrintWriter and ServletOutputStream?
How servlet is created?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What's the servlet interface?
How can you create a session in servlet?
Why doesn’t a servlet include main()? How does it work?
Can filter be used as request or response?
What is the process for chaining servlet?
Can we fetch the attributes related to a servlet on a different servlet?
How will you pass values from HTML page to the servlet?