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 MIME Type?

870


Why do we use sendredirect() method?

737


What is the difference between sendredirect() and forward() in a servlet?

736


Why the concept of single thread model interface is used?

729


How can the session in servlet be destroyed?

873


What is cookies in servlet with example?

719


What is servlet and its use?

811


What are the various ways of session supervision in servlets?

747


What are the common methods that are included in the http servlet class?

786


What are the types of Session Tracking ?

844


Is it possible to have a constructor inside the servlet?

737


What is Servlet API used for connecting database?

815


Explain servlet life cycle?

830


What exactly are the functions of servlet?

812


how the HTML data stored in web server?

2199