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


Please Help Members By Posting Answers For Below Questions

What’s the difference between genericservlet and httpservlet?

622


What is the web server used for running the Servlets?

647


How can we perform any action at the time of deploying the project?

722


What are the mechanisms used by a servlet container for maintaining session information?

662


What's the difference between authentication and authorization?

637






What are the different mode that servlets can be used?

644


What is difference between PrintWriter and ServletOutputStream?

856


What are the uses of servlets?

701


What is servlet and its advantages?

622


What is webservlet?

630


How can the referrer and the target urls be used in servlet?

615


Explain the difference between servletconfig and servletcontext in servlet?

654


How does Cookies work in Servlets?

748


What are common tasks performed by Servlet Container?

849


Explain the differences between jsp and servlet.

623