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
Answer / mahesh
Container creates instance of servlet by calling
Class.forName(className).newInstance().
| Is This Answer Correct ? | 15 Yes | 0 No |
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 |
What is the difference between servlet and jsp?
What are the life cycle methods of a servlet?
what are the way a client can be tracked?
What do you mean by deployment descriptor?
What are the types of an http request?
How printwriter is different from servletoutputstream?
Difference between web container & web server........... Difference between web server & application server?????????
How do I support both get and post from the same servlet?
If you want to modify the servlet,will the Webserver need to be ShutDown ?
How do you track a user session in servlets?
How the servlet is loaded?
What is generic servlet class?