Questionnez la Communauté
Ask any professional question and get answers from other specialists.
no , we cannot provide a parameterized constructor in servlet.As , in servlet consist of the container creates the object for servlet.
No.Servlet instances created by Servlet container, it Create no argument constractor.
No, in servlet every instance is created by the given container via reflection api.
no! we cannot provide a parameterized constructor in servlet.The servlet container creates the object for sevrlet.The container will create the object based on Class.forN ... Voir Plus
yes we keep parameterised constructor in our servlet class.
7down voteaccepted No. Servlet instances are created by the container via reflection, and they expect to find a public, no-arg constructor (the default constructor) ... Voir Plus