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 |
When servlet is loaded?
How to run a servlet program?
Describe servlet?
What is session?
What do you mean by default initialization in java servlet?
Are Servlets by default thread safe or not? thanks in advance regards Sudhakar
What exactly is a servlet?
Which method of the httpservletrequest object is used?
What is the difference between Servlets and Applets?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
In which cases Destroy() is invoked?
What is java servlet?