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 |
Explain the different ways for servlet authentication?
can i call init() method in destroy() method of servlset. ?
What is http servlet?
How to rectify errors in java servlet while compilation?
What are the new features added to servlet 2.5?
What is the procedure of invoking different servlet in a different application?
What's the architecture of a servlet package?
Name the servers that can be used to develope and deploy Servlets?
Can we define constructor in Servlet class?
What is servlet used for?
What do you mean by servlet?
Difference between java beans & servlets?