Computer Science, asked by girivivek030297, 7 hours ago

How constructor can be used for a servlet?

Answers

Answered by Shaireli777
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 JigyanshaPradhan
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