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...

Can we define constructor in Servlet class?

Answer Posted / sanjeev kumar

We never can create the Servlet instance. hence there is no
chance of having constructor in servlets. Servlet life
cycle methods (init(), service(), destoy())are called by
the servlet container.

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given the request path below, which are context path, servlet path and path info?

1096


What is cgi and what are its drawbacks?

1147


What is Client-Server Computing?

2482


How do I use cookies to store session state on the client?

1025


What is a web container and what is its responsibility?

1032


What do you mean by servlet context?

1226


What is a servlet engine?

1098


Who is responsible to create the object of servlet?

1251


What is the type of method for sending request from http server?

1177


Can filter be used as request or response?

1011


What is the difference between context parameter and context attribute?

1120


Explain is servlet mapping?

1059


How would you create deadlock on your servlet?

1223


What do you mean by request dispatcher in servlet?

1153


What are the phases of a servlet life cycle?

1161