Can we define constructor in Servlet class?

Answer Posted / amit tomar

we can't define constructor in Servlet class

Is This Answer Correct ?    3 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by filter in servlet?

540


Explain the concept of ssi ?

601


Why is a constructor needed in a servlet even if we use the init method?

612


What is dispatcher servlet?

564


Why don't we write a constructor in a servlet?

594






How to handle exceptions thrown by application with another servlet?

620


Why session tracking is needed?

590


Why are http servlets used in programming?

552


How can you push data from an Applet to a Servlet?

613


How do I support both get and post from the same servlet?

706


Explain the difference between generic servlet and http servlet?

545


What is difference between PrintWriter and ServletOutputStream?

781


Write all the phases defined in servlet life cycle?

594


Can we use threads in Servlets?

658


what is servlet chaining?

629