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

that is one of the specification rule that
1.instantiated by constructior with no argument.
2.implementd class should be public and non-abstract.
3.should be implemnt javax.servlet.Servlet
We can Write it

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cgi?

1066


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

1060


What are the steps that are required to handle the multi-threading?

1155


Which java framework is most popular?

1218


What is ServletConfig object?

1250


Explain their methods? Tell me their parameter names also have you used threads in servlet?

1099


Which method is called when reference variable is passed in system.net?

2456


Explain Action Servlet?

1154


What is meant by cookies?

1136


What is the difference between encodeRedirectUrl and encodeURL?

1167


What is meant by session? Tell me something about httpsession class?

1084


Difference between forward() method and sendredirect() method ?

1088


Write the code to get the server information in servlet.

1111


What are the functions of Servlet container?

1173


Explain url encoding?

1037