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 are sessions in servlets?

1071


What are the advantages of Servlet over CGI?

1152


What is servlet configuration?

1077


What is servlet and its life cycle?

1124


When Servlet is unloaded?

1112


What is servlet and its advantages?

1056


Is servlet a server side scripting language?

1146


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

1148


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1259


What is the advantage of Servlets when compared with other server side technologies?

2347


Explain servlet events?

1021


Explain the lifecycle of a servlet?

977


What are the types of Session Tracking ?

1151


What are session variable in servlets?

1034


How do you configure a centralized error handler in servlets?

1112