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 define constructor in Servlet class?

Answer Posted / sanjeev kumar

We never can create the Servlet instance. hence there is no
chance of having constructor in servlets. Servlet life
cycle methods (init(), service(), destoy())are called by
the servlet container.

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a simple servlet program to print the contents of html.

1042


How do you load an image in a Servlet?

1184


What is MIME Type?

1137


Define the lifecycle for executing a jsp page.

1080


What is the type of method for sending request from http server?

1100


How do we share data using 'getservletcontext ()?

1035


What are the disadvantages of storing session state in cookies?

1145


What is difference between jsp and servlet?

1171


What do you mean by chaining in servlet?

1030


How do we call one servlet from another servlet?

1038


How can we refresh automatically when new data has entered the database?

1109


What are some disadvantages of storing session state in cookies?

1015


What do you mean by mime type?

974


how the HTML data stored in web server?

2628


How can you create a session in servlet?

1137