Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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.

Answer Posted / karnbakar

as a programmer u cant create object for servlet ,container
invokes default constructor of the servlet

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you create deadlock on your servlet?

1180


What is a servlet-to-servlet communcation?

1178


What do you mean by a filter and how does it work?

955


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1101


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

1005


What is context in servlet?

1042


Which event is fired at the time of project deployment and undeployment?

1322


Is dispatcher servlet a singleton?

1015


Explain session tracking and its importance?

1009


What is meant by cookies?

1080


How can we create deadlock situation in servlet?

1433


What is the difference between the servlets and cgi programs?

998


Can servlet have a constructor ?

1048


What exactly are the functions of servlet?

1101


How to notify an object in session when session is invalidated or timed-out?

1086