ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
   
 
Categories  >>  Software  >>  Java Related  >>  Java J2EE  >>  Servlets
 
 
 
Question
Hi guys.. Well can u tell me that why there is need of
"init()" , i mean why can not we initialize the servlet object 
with the help of constructors?
Thank you.
 Question Asked At ::
 Question Submitted By :: tanzeem.akhtar
I also faced this Question!!     Rank Answer Posted By  
 
Answer
When u create a servlet with a constructor it wont be a 
complete servlet but will be in a akward state where it 
cannot access Servlet Context and Config.It has to go 
through the init() method (though we dont know what code is 
written there) to be a complete servlet

 
Archana
 
View All Answers
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com