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 are the type of protocols used in httpservlet?
List out the difference between ServletConfig and ServletContext?
What are the disadvantages of storing session state in cookies?
Why the container loads server at the application startup and how?
What is meant by a web application
What is the importance of init() method in Servlet ?
What is the purpose of inter-servlet communication?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
Is tomcat a servlet container?
why we should override only no-agrs init() method.
What is servlet in web technology?
Explain servlet life cycle?
What are the functions of the servlet container?
What do you mean by session tracking?
What is session tracking?