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 is servlet and its types?
What is Servlets and explain the advantages of Servlet life cycle?
What do you mean by web applications? Explain web application directory arrangement?
Is java servlet still used?
What is api in servlet?
What is a generic servlet?
Elucidate servlet attributes and its scope?
What are the uses of servlet
Write a command to get actual path of a servlet to the server?
Which HTTP method is non-idempotent?
How can an existing session be invalidated?
Which java framework is most popular?
How to upload a file to the server using servlet?
What are the life cycle methods of a servlet?
What is called Session Tracking?