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

How do you design microservices?

815


What do you mean by servlet?

903


What do you mean by cgi?

712


What is the purpose of dispatcherservlet properties?

713


Why is httpservlet declared abstract?

790


What are Servlets?

830


request parameter how to find whether a parameter exists in the request object?

775


What is servlet in simple terms?

780


why we should override only no-agrs init() method.

873


Explain the jar and war files in servlet?

802


What methods do you use in servlet - applet communication?

793


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

778


How servlet is created?

780


What is generic servlet class?

804


What if we pass negative value in load-on-startup?

1031