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 / ravi

No..not at all,,,,servlet is a class which is dynamically
loaded...dynamically loaded class never requires
constructors.

Is This Answer Correct ?    8 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is SingleThreadModel interface?

1092


Why is httpservlet declared abstract?

1061


What are the common methods that are included in the http servlet class?

995


Explain the difference between generic servlet and http servlet?

944


What is Request Dispatcher?

1365


What is the purpose of inter-servlet communication?

1046


What are the differences between servlet context vs servlet config?

1023


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

1044


How we can create war file in servlet?

1069


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

1040


What is the element?

1007


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

990


How can the referrer and the target urls be used in servlet?

949


How to rectify errors in java servlet while compilation?

893


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?

1208