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 the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

1029


What do you mean by cgi?

965


When servlet object is created?

1150


What is servlet looping or chaining?

1129


How is an application exception handling is done using a servlet?

1014


Which interface must be implemented by all servlets?

1339


What do you mean by request dispatcher in servlet? Also explain its methods.

1145


Why do we have servlet wrapper classes?

1064


Is servlet synchronized?

1079


Explain url encoding in servlet?

1044


What is servlet mapping?

1015


What are the different methods involved in the process of session management in servlets?

1266


Explain the difference between a web server and a web container?

999


Whether we can get deadlock situation in servlets?

1067


What’s the use of the servlet wrapper classes??

1103