How constructor can be used for a servlet?
Answers
Answered by
1
Answer:
We cannot declare constructors for interface in Java. This means we cannot enforce this requirement to any class which implements Servlet interface. Also, Servlet requires ServletConfig object for initialization which is created by container.
Answered by
1
Answer:
We can't declare constructors for interface in java. This means we can't enforce this requirement to any class which implements servlet interface. Also, servlet requires servletConfig object for initialisation which is created by container.
Similar questions
Math,
3 months ago
Math,
3 months ago
English,
5 months ago
Biology,
5 months ago
Accountancy,
1 year ago