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 |
can we create more than ServletContext and ServletConfig in your application
How to handle exceptions thrown by application with another servlet?
How servlets are deployed in java?
Difference between forward() method and sendredirect() method ?
What is HTTP Session ?
Why filter is used in servlet?
can we override service method in my servlet class..?? if yes or no why ??
What is the use of servlet wrapper classes?
What are the phases of the servlet life cycle?
What is HTTP Tunneling?
Difference between java beans & servlets?
How do I use cookies to store session state on the client?