Can we define constructor in Servlet class?

Answer Posted / amit tomar

we can't define constructor in Servlet class

Is This Answer Correct ?    3 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of storing session state in cookies?

626


How can we refresh automatically when new data is entered into the database?

595


What is the difference between Difference between doGet() and doPost()?

754


What are the different mode that servlets can be used?

549


Explain the architechure of a servlet?

598






What is generic servlet class?

596


Is it possible to have a constructor inside the servlet?

550


What exception should be thrown when servlet is not properly initialized?

553


How does tomcat servlet container work?

587


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

768


Why do you use session tracking in httpservlet?

632


How httpservlet is different from the genericservlet?

560


What do you mean by deployment descriptor?

549


Explain get and post.

647


What are the differences between forward() method and sendredirect() methods?

543