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

How do you invoke a servelt?

1129


How can we perform any action at the time of deploying the project?

1119


what is servlet chaining?

1101


How can you create a session in servlet?

1146


Can filter be used as request or response?

973


What is the difference between genericservlet and httpservlet

1097


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

1148


What is the purpose of inter-servlet communication?

1100


Why is init() method is used in servlets?

1030


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1253


What is the functionality of actionservlet and requestprocessor?

1091


What is servlet and its advantages?

1055


Should I override the service() method?

1094


What is the difference between using getSession(true) and getSession(false) methods?

1049


What are the difference between session and cookies in servlet? Explain

1045