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

What are advantages of servlets over cgi?

632


Write a program to show the functionality of servlets.

557


Explain how to improve Servlet Performance?

598


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

622


How would you create deadlock on your servlet?

624






What's the advantages using servlets than using cgi?

558


What is the use of java servlet api?

602


What is the need of servlet filters?

542


How to get the actual path of servlet in server?

739


Which HTTP method is non-idempotent?

618


What is the difference between the http servlet and generic servlet?

603


What is the major difference between servlet and applet?

544


What is the life cycle of a servlet?

791


What are the uses of servlet

635


When Servlet is unloaded?

628