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

Yes, It can possible to create the constructor inside the
servlet , it wont give any exception or error for creation
and it compile properly. But, Servlet initialization will
done by container. Container calls the init() to
initialize the servletconfg obj. No Use to write the
constructor inside the servlet.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1055


What are the jobs performed by servlets?

1072


What is the major difference between servlet and applet?

995


Write the code to get the server information in servlet.

1053


What is ServletContext object?

1095


Why the container loads server at the application startup and how?

1057


What is servlet instance?

1047


Difference between GET and POST?

1151


Is tomcat a servlet container?

1037


What are the phases of a servlet life cycle?

1114


What do you mean by default initialization in java servlet?

1094


What is the use of servlet wrapper classes?

1178


What is servlet configuration?

1057


Explain the war file?

1062


What is the process to implement doget and dopost methods?

988