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

Explain the different ways for servlet authentication?

0 Answers  


can i call init() method in destroy() method of servlset. ?

5 Answers   IBM,


What is http servlet?

0 Answers  


How to rectify errors in java servlet while compilation?

0 Answers  


What are the new features added to servlet 2.5?

0 Answers  






What is the procedure of invoking different servlet in a different application?

0 Answers  


What's the architecture of a servlet package?

0 Answers  


Name the servers that can be used to develope and deploy Servlets?

1 Answers  


Can we define constructor in Servlet class?

10 Answers   Accenture, Yugma,


What is servlet used for?

0 Answers  


What do you mean by servlet?

0 Answers  


Difference between java beans & servlets?

0 Answers  


Categories