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 |
Difference between java beans & servlets?
What is a web container and what is its responsibility?
How is a servlet implemented in code?
What is the life cycle of a servlet?
Why do we have servlet listeners?
Can we override destroy method in servlet?
Whether we can get deadlock situation in servlets?
What is the need of session tracking in web application?
How threads are implemented in servlets?
What are the type of protocols used in httpservlet?
List out the difference between ServletConfig and ServletContext?
What is servlet mapping?