DEVFYI - Developer Resource - FYI

When we don't write any constructor for the servlet, how does container create an instance of servlet?

Servlet Interview Questions and Answers


(Continued from previous question...)

24. When we don't write any constructor for the servlet, how does container create an instance of servlet?

Container creates instance of servlet by calling Class.forName(className).newInstance().

(Continued on next question...)

Other Interview Questions