Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / ravikiran
we cann't write a constructor because the servlet container
will create the instance of the servlet by calling the
no-arg constructor
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
What are the functions of Servlet container?
What is meant by a web application
Which method of the httpservletrequest object is used?
What is Servlet API used for connecting database?
How to generate the server side programming and the advantages of it over the other languages?
What is the servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What do you mean by singlethreadmodel interface?
Explain the difference between jsp and servlet?
What is httpservlet and how it is different from genericservlet?
Can you refresh servlet in client and server-side automatically?
What methods do you use in servlet - applet communication?
Explain request dispatcher and its methods.
What is difference between cookies and httpsession?
When a servlet accepts a call from a client, it receives two objects. What are they?