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
English,
4 hours ago
Math,
4 hours ago
English,
7 hours ago
Biology,
7 hours ago
Accountancy,
7 months ago