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 are the phases of the servlet life cycle?

611


Can we override servlet service method?

591


What is the difference between CGI and Servlet?

590


Why filter is used in servlet?

528


What do you mean by interservlet communication?

590






How can I send user authentication information while making URL Connection?

549


What is the functionality of actionservlet and requestprocessor?

601


What are the differences between servlet context vs servlet config?

582


What do you mean by default initialization in java servlet?

606


Explain servlet.

571


Write the code to get the server information in servlet.

575


How can you use a servlet to generate a plain text instead of html?

596


What are the exceptions thrown by servlets? Why?

625


Difference between get and post in java servlets?

550


Explain the servlet context.

602