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?

Answers were Sorted based on User's Feedback



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

Answer / mahesh

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

Is This Answer Correct ?    15 Yes 0 No

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

Answer / sk.jani

In the Servlet if we are not using any constructor
internally the compiler create the default Constructor.if u
want to see that default Constructor user this folling
command.

javap classname.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Servlets Interview Questions

can we create more than ServletContext and ServletConfig in your application

6 Answers   Patni,


How to handle exceptions thrown by application with another servlet?

0 Answers  


How servlets are deployed in java?

0 Answers  


Difference between forward() method and sendredirect() method ?

0 Answers  


What is HTTP Session ?

6 Answers  


Why filter is used in servlet?

0 Answers  


can we override service method in my servlet class..?? if yes or no why ??

7 Answers   IBM,


What is the use of servlet wrapper classes?

0 Answers  


What are the phases of the servlet life cycle?

0 Answers  


What is HTTP Tunneling?

1 Answers   Wipro,


Difference between java beans & servlets?

0 Answers  


How do I use cookies to store session state on the client?

0 Answers  


Categories