Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?

Answer Posted / abc

you can write as like for regular class.

Is This Answer Correct ?    10 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet and its types?

560


What mechanisms are used by a Servlet Container to maintain session information?

672


What are the functions of Servlet container?

611


How can you create a session in servlet?

600


What is the procedure of invoking different servlet in a different application?

563






What is meant by session? Tell me something about httpsession class?

605


What methods do you use in servlet - applet communication?

586


Which method of the httpservletrequest object is used?

574


What are the life cycle methods of a servlet?

595


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2242


What do you mean by cgi in servlet?

633


What's the difference between servlets and applets?

564


Which httpsession object is used to view and manipulate information about a session?

736


What is servlet and list its types?

546


What is servlet instance?

544