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 cgi?
How is an application exception handling is done using a servlet?
What are the steps that are required to handle the multi-threading?
Which java framework is most popular?
What is ServletConfig object?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
Which method is called when reference variable is passed in system.net?
Explain Action Servlet?
What is meant by cookies?
What is the difference between encodeRedirectUrl and encodeURL?
What is meant by session? Tell me something about httpsession class?
Difference between forward() method and sendredirect() method ?
Write the code to get the server information in servlet.
What are the functions of Servlet container?
Explain url encoding?