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 the lifecycle for executing a jsp page.

679


What are the objects involved when a servlet receives a call from client?

629


What is the use of send redirect () method?

668


what is multiple server?

1843


What are the new features added to servlet 2.5?

698






What is servlet invoker?

677


If a servlet is not properly initialized, what exception may be thrown?

717


What's the use of servletcontext?

772


How will two or three servlets interact or communicate with each other?

1013


What are the types of Session Tracking ?

728


How servlet is created?

650


Is servlet thread safe?

619


What are the different session tracking techniques?

841


What is getservletcontext?

626


What is the difference between jsp and servlet life cycle?

787