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
If some new data has entered the database, explain how can a servlet refresh automatically?
Why do we need servlet filter?
Can we refresh servlet in client and server side automatically?
What is servlet initializer?
Can you call a jsp from the servlet?
Explain the difference between get and post method in servlet?
What are the differences between forward() method and sendredirect() methods?
What is the difference between jsp and servlet life cycle?
What is a servlet-to-servlet communcation?
What methodology can be followed to store more number of objects in a remote server?
Why are http servlets used in programming?
What's the advantages using servlets than using cgi?
What is ServletConfig object?
What is life cycle of Servlet?
What is the difference between using getSession(true) and getSession(false) methods?