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...

When we don't write any constructor for the servlet, how
does container create an instance of servlet?

Answer Posted / mahesh

Container creates instance of servlet by calling
Class.forName(className).newInstance().

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default http method in the servlet?

1236


How to handle exceptions thrown by application with another servlet?

1034


Write a program to show the functionality of doget and dopost method?

1144


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1157


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

957


What is http servlet in java?

1012


Write a hello world program using servlets.

1013


Whether thread can be used in servlets?

1159


How does tomcat servlet container work?

1020


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2640


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

988


What is a server side include (ssi)

1072


Differentiate between get and post?

1102


Differentiate between the web server and application server?

988


What are the features added in Servlet 2.5?

1194