Can we define constructor in Servlet class?
Answer Posted / komal singh adhikari
YES,
we can initialized the default constructor.
but we cannot call the parameterized one.
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What’s the difference between genericservlet and httpservlet?
What is the web server used for running the Servlets?
How can we perform any action at the time of deploying the project?
What are the mechanisms used by a servlet container for maintaining session information?
What's the difference between authentication and authorization?
What are the different mode that servlets can be used?
What is difference between PrintWriter and ServletOutputStream?
What are the uses of servlets?
What is servlet and its advantages?
What is webservlet?
How can the referrer and the target urls be used in servlet?
Explain the difference between servletconfig and servletcontext in servlet?
How does Cookies work in Servlets?
What are common tasks performed by Servlet Container?
Explain the differences between jsp and servlet.