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 |
Why do we use sendredirect() method?
What’s the difference between sendredirect and forward methods
Explain url encoding?
program for RequestDispatcher in servlets?
What is a generic servlet?
Why should we go for interservlet communication?
Which exception is thrown if servlet is not initialized properly?
Can you use javascript in servlets?
What is cookie in servlet?
What is java servlet session?
What is a servlet engine?
What is the procedure for initializing a servlet?