-
State true or false: - Can the constructor be used instead of init () to initialize a Servlet
Skill/Topic: ServletsA) TrueB) FalseExplanation: But you shouldn’t. The original reason for init() was that ancient versions of Java couldn’t dynamically invoke constructors with arguments, so there was no way to give the constructor a ServletConfig. That no longer applies, but Servlet containers still will only call your no-arg constructor. So you won’t have access to a ServletConfig or ServletContext.