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 write a constructor for a Servlet class ? if yes how ?
if no why not ?

Answer Posted / ravikiran

we cann't write a constructor because the servlet container
will create the instance of the servlet by calling the
no-arg constructor

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Difference between doGet() and doPost()?

1290


What is the life-cycle of servlets?

1137


What do you understand by mime type?

984


List some life cycle methods of a servlet.

1055


Which is better jsp or servlet?

1049


What is a deployment descriptor?

1097


Which interface must be implemented by all servlets?

1339


Can we fetch the attributes related to a servlet on a different servlet?

1138


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()?

1089


What exactly is a servlet?

1002


What is a servlet engine?

1031


What is load-on-startup in servlet?

1138


What does the term localization refer to?

1102


What is the difference between servlet and filter?

945


Explain get and post.

1104