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 a server side include (ssi)

570


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

622


What if you need to span your transaction across multiple servlet invocations?

587


Differentiate between the print writer and servlet output stream?

565


What is the difference between the servlets and cgi programs?

553






When jsessionid is created?

609


What are different ways for authentication of servlet?

531


What is the difference between portlet and servlet?

514


How can we refresh automatically when new data is entered into the database?

600


What are the differences between the servletconfig interface and the servletcontext interface?

587


What is the difference between get and post methods?

604


Which HTTP method is non-idempotent?

618


What are the different types of servlets?

518


What are the steps involved in placing a servlet within a package?

593


Is that servlet is pure java object or not?

644