Can we define constructor in Servlet class?
Answer Posted / komal singh adhikari
YES,
we can initialized the default constructor.
but we cannot call the parameterized one.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Can servlet have a constructor ?
What's the difference between authentication and authorization?
What is SingleThreadModel interface?
What is the dispatcher servlet?
Write a servlet to upload file on server.
If some new data has entered the database, explain how can a servlet refresh automatically?
What are different Authentication options available in Servlets.
Can we override destroy method in servlet?
What are the drawbacks of cgi?
What is url encoding and url decoding
What are the differences between the servletconfig interface and the servletcontext interface?
Difference between get and post in java servlets?
Explain the role of dispatcherservlet and contextloaderlistener.
Why servlet is used as controller ? Not JSP? I want complete explation?
What is Client-Server Computing?