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

What is the workflow of a servlet?

1181


What are the steps that are involved in using the httpservlet class?

1127


What are the phases of a servlet life cycle?

1120


What’s the difference between forward() and sendredirect() methods?

1017


What is the difference between servlet and jsp?

1120


Which are the different ways you can communicate between servlets?

1001


What is the use of servlet context?

1045


How do you invoke a servelt?

1127


What exactly is a servlet?

1014


Whether we can get deadlock situation in servlets?

1074


What is difference between GenericServlet and HttpServlet?

1175


How can an existing session be invalidated?

1173


What is the use of welcome-file-list?

1035


Is servlet a controller?

1012


Why session tracking is needed?

1030