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 v create a constructor 4 servlet?

Answer Posted / sanjay sah

Yes, we can create constructor for servlet but that one
should be public no-args constructor.
If we do not create then compiler itself takes care for
it.Servlet container creates instance of servlet by invoking
public no-agrs constructor.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is setattribute in servlet?

1121


How we can call a jsp from the servlet?

991


What is the use of servlet context?

1029


What are the functions of the servlet container?

1607


What is the functionality of actionservlet and requestprocessor?

1069


What are the exceptions thrown by servlets? Why?

1148


What is lazy loading and what is Generic Servlet Class?

1059


What methodology can be followed to store more number of objects in a remote server?

2264


What is the servletconfig object?

1021


What are different ways for authentication of servlet?

1064


Difference between httpservlet and generic servlets?

1090


What is servlet collaboration?

1132


What do you mean by a filter and how does it work?

928


Can we use threads in Servlets?

1125


Is dispatcher servlet a singleton?

1000