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 / neha rajpal

the very first step of creating the servlet is making its
object after until and unless you will not trigger the init
method it will be treated as simple object not the servlet
after triggering the init method it get the servlet config
init parameters and then only it is called as servlet so its
very imp to intiate the init method

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you create a deadlock condition on a servlet?

1124


What are the different ways we can maintain state between requests?

1158


Can filter be used as request or response?

1011


how many jsp scripting elements are there and what are those?

1064


Which interface should be implemented by all servlets?

1267


Why HttpServlet class is declared abstract?

1274


Define servlet mapping?

1221


Why servlet is faster than jsp?

1134


What do you mean by session tracking and also explain its techniques?

1052


What is servlet and its life cycle?

1165


What’s the difference between genericservlet and httpservlet?

1189


Difference between GET and POST?

1219


Explain servlet events?

1065


What's the use of servletcontext?

1194


Describe the phases of servlet lifecycle?

1126