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 are Servlets?

595


What are the drawbacks of cgi?

565


What is the functionality of actionservlet and requestprocessor?

592


How a servlet is unloaded?

587


Describe servlet?

575






What is cookies in servlet with example?

516


What are the differences between servlet context vs servlet config?

575


What are important features of Servlet 3?

589


Why the container loads server at the application startup and how?

578


How do we call one servlet from another servlet?

589


What is the servlet?

614


What is the difference between using getSession(true) and getSession(false) methods?

570


Can we refresh servlet in client and server side automatically?

589


What methodology can be followed to store more number of objects in a remote server?

1813


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

642