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 servlet? Explain
what is servlet chaining?
Differentiate between the get and post method
How multiple simultaneous requests can be handled by servlets?
What do you mean by singlethreadmodel interface?
What is servlet configuration?
Is it good idea to create servlet constructor?
What are the exceptions thrown by Servlets?
Explain the difference between generic servlet and http servlet?
What are the disadvantages of storing session state in cookies?
What are different types of Servlets?
List out difference between a JavaBean from a Servlet?