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

Explain the servlet filter.

992


Which java framework is most popular?

1149


What do you mean by web applications?

1208


How printwriter is different from servletoutputstream?

1019


What is httpservlet class?

1156


How a servlet is unloaded?

1094


What must be implemented by all servlets?

1104


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1259


Explain the steps involved in placing a servlet within a package?

1060


Explain web container.

1034


Describe in brief RequestDespatcher?

1142


What is called Scriptlet?

1106


What is the disadvantage of cookies?

997


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

1066


Difference between doget and dopost?

1175