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

How do we translate jsp?

1110


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

1123


What is the difference between forward () and sendredirect () functions in servlet? Explain

1079


Explain the concept of ssi ?

1114


why we should override only no-agrs init() method.

1189


Explain servlet life cycle?

1188


Why jsp is better than servlet?

1081


Who is responsible for writing a constructor?

1311


Define the servlet mapping.

1124


What is ServletContext object?

1160


What is http servlet?

1105


How can you run a servlet program?

1141


How are filters?

1085


What exactly is a servlet?

1065


What are all the advantages of servlet over cgi?

1137