Can we define constructor in Servlet class?

Answer Posted / santhosh kumar

Yes, we can define constructor in servlet.

Is This Answer Correct ?    28 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between cookies and httpsession?

544


Difference between get and post in java servlets?

540


What is servlet container. how it works?

607


How do you configure a centralized error handler in servlets?

531


How do we go with database connection and log4j integration in servlet?

695






When should you prefer to use doget() over dopost()?

661


If my browser does not support cookie, and my server sends a cookie instance what will happen?

645


What is servlet and its advantages?

519


What is pure servlet?

691


What is servlet container?

663


What is the type of method for sending request from http server?

589


What is the servletconfig object?

527


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

568


Tell us something about servletconfig interface.

578


Can we override destroy method in servlet?

495