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
What is the difference between servlet and jsp?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Can we override servlet service method?
Tell us something about servletcontext interface.
How native code can be used in a servlet?
What is the workflow of a servlet?
Why is Servlet so popular?
What is meant by servlet? What are the parameters of the service method?
How do you design microservices?
What are the uses of servlet and what is servlet chaining?
What is the dispatcher servlet?
What is a web application and what is it’s directory structure?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
Why servlet is mostly used?
What's the servlet interface?