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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the directory structure of a war file?

899


How to commuincate between an applet and a servlet?

773


Tell us something about servletcontext interface.

818


What is a servlet engine?

735


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

758


Which http method is said to be non-idempotent and idempotent?

801


Why servlet is mostly used?

950


Explain the difference between get and post method in servlet?

831


What’s the use of the servlet wrapper classes??

832


What is java servlet session?

710


Can we fetch the attributes related to a servlet on a different servlet?

859


what do you understand by url rewriting?

702


Can you use javascript in servlets?

798


Explain get and post.

856


Tell us something about servletconfig interface.

761