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 servlet and its types?

1058


What is Servlets and explain the advantages of Servlet life cycle?

1109


What do you mean by web applications? Explain web application directory arrangement?

966


Is java servlet still used?

1050


What is api in servlet?

1023


What is a generic servlet?

958


Elucidate servlet attributes and its scope?

1020


What are the uses of servlet

1180


Write a command to get actual path of a servlet to the server?

1032


Which HTTP method is non-idempotent?

1133


How can an existing session be invalidated?

1173


Which java framework is most popular?

1141


How to upload a file to the server using servlet?

1000


What are the life cycle methods of a servlet?

1052


What is called Session Tracking?

1188