Discussions Populaires Dans la Communauté Applets

S'abonner

Questionnez la Communauté


Ask any professional question and get answers from other specialists.

Stream language
Firoz Ahmad's image
La question a été ajoutée par Firoz Ahmad Software Engineer Tata Consultancy Service Limited
Depuis 7 années
Réponses:
8
Adeptes:
Vues:
30
Vote Count:
0
La réponse doit contenir un minimum de 25 caractères.
Zaid Rabab'a's image
La question a été ajoutée par Zaid Rabab'a Software Development Team Leader Al-Safa Co. Ltd.
Depuis 10 années
Réponses:
1
Adeptes:
Vues:
131
Vote Count:
3
La réponse doit contenir un minimum de 25 caractères.
hardik sangani's image  
La répondre a été ajoutée par  hardik sangani, Information Technology Analyst, Infosys Ltd
Depuis 6 années

no , we cannot provide a parameterized constructor in servlet.As , in servlet consist of the container creates the object for servlet.

Signaler CV
Hasan Mobarak's image  
La répondre a été ajoutée par  Hasan Mobarak, Software Engineer (Java), Fakir Knitwear's ltd
Depuis 6 années

No.Servlet instances created by Servlet container, it Create no argument constractor. 

Signaler CV
Gulshan Kumar's image  
La répondre a été ajoutée par  Gulshan Kumar, Senior Software Developer, Cognizant - India
Depuis 6 années

No, in servlet every instance is created by the given container via reflection api.

Signaler CV
DWARKILAL PATIDAR's image  
La répondre a été ajoutée par  DWARKILAL PATIDAR
Depuis 6 années

No, Servlet instances are created by the container, and they expect to find a public, no-arg constructor (the default constructor).

Signaler CV
sundar yannabathula ys's image  
La répondre a été ajoutée par  sundar yannabathula ys, Software Engineer, Infosys Technologies Limited
Depuis 6 années

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

Signaler CV
Vishal Patel's image  
La répondre a été ajoutée par  Vishal Patel, Java developer, Open Dox Technology Indore
Depuis 6 années

yes we keep parameterised constructor in our servlet class.

Signaler CV
sriramjee Alluri's image  
La répondre a été ajoutée par  sriramjee Alluri, Software Engineer, BMW AG
Depuis 6 années

No we can't use paramererized constructor

Signaler CV
Rizwan Ali Sardar Ali's image  
La répondre a été ajoutée par  Rizwan Ali Sardar Ali
Depuis 6 années

  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

Signaler CV