Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / saikiran
that is one of the specification rule that
1.instantiated by constructior with no argument.
2.implementd class should be public and non-abstract.
3.should be implemnt javax.servlet.Servlet
We can Write it
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What if you need to span your transaction across multiple servlet invocations?
How to commuincate between an applet and a servlet?
What's the use of servletcontext?
Does servlet have main method?
Is java servlet still used?
Explain servlet events?
what is multiple server?
What is getservletcontext?
What are the uses of servlet and what is servlet chaining?
What is http servlet in java?
What do you mean by a filter and how does it work?
what do you understand by url rewriting?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
How to make sure a servlet is loaded at the application startup?