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 are Servlets?
What are the drawbacks of cgi?
What is the functionality of actionservlet and requestprocessor?
How a servlet is unloaded?
Describe servlet?
What is cookies in servlet with example?
What are the differences between servlet context vs servlet config?
What are important features of Servlet 3?
Why the container loads server at the application startup and how?
How do we call one servlet from another servlet?
What is the servlet?
What is the difference between using getSession(true) and getSession(false) methods?
Can we refresh servlet in client and server side automatically?
What methodology can be followed to store more number of objects in a remote server?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?