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 a servlet be called by passing its name as a parameter in the URL?

1 Answers   iFlex,


What is done after deploying a war file and before client gives a request

2 Answers   Bosch,


How can we create deadlock situation in servlet?

0 Answers  


How to upload a file to the server using servlet?

0 Answers  


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

0 Answers  






What is servletconfig?

0 Answers  


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

0 Answers   CTS,


What is the use of RequestDispatcher in servlet?

18 Answers   Accenture, CTS, TCS,


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

7 Answers   IBM,


Define the servlet mapping.

0 Answers  


How servlets are deployed in java?

0 Answers  


What is servlet and its life cycle?

0 Answers  


Categories