Can we define constructor in Servlet class?

Answer Posted / jayakrishna

init() is there what is the need of constructor.If is ther
who will call the constructor? servlet container will call
the init method

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define servlet mapping?

658


What is the importance of init() method in Servlet ?

588


What is the difference between servlet and jsp?

594


What is servletconfig?

543


How can the session in servlet can be destroyed?

705






How httpservlet is different from the genericservlet?

560


What is the use of httpservletresponsewrapper?

528


How do you find out what client machine is making a request to your servlet

529


How can the session in servlet be destroyed?

637


What is the difference between get and post methods?

599


explain the advantages of servlet life cycle?

553


What's the servlet interface?

592


Why are servlets used?

525


What are the types of servlet?

662


Why do we have servlet listeners?

597