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 different session tracking techniques?
What is life cycle of Servlet?
What is the difference between forward () and sendredirect () functions in servlet? Explain
Explain the difference between a web server and a web container?
What is http servlet? Explain with the help of an example.
How do you configure a centralized error handler in servlets?
Explain the lifecycle of a servlet?
How many objects of a servlet is created?
What is a servlet-to-servlet communcation?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
How can we refresh automatically when new data has entered the database?
What is the difference between Servlets and Applets?
How native code can be used in a servlet?
How can an existing session be invalidated?
List the Different types of servlet?