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

What is the major difference between context parameter and context attribute?

0 Answers  


Why jsp is better than servlet?

0 Answers  


What are the functions of an intercepting filter?

0 Answers  


What do you mean by chaining in servlet?

0 Answers  


Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements?

4 Answers   AZTEC,


Write a hello world program using servlets.

0 Answers  


why are extending GenericServlet and why are extending HttpServlet explain?

7 Answers  


What is the difference between context parameter and context attribute?

0 Answers  


When Servlet is unloaded?

0 Answers  


What is Difference between JavaBeans and taglib directives?

3 Answers  


Are Servlets Thread Safe? How to achieve thread safety in servlets?

0 Answers  


Explain servlet.

0 Answers  


Categories