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 |
how to pass parameter from servlet to html form
i have class files in class folder. but i have no java files. but i want to modify the java files which are related to class files . how ?
Why are servlets used?
What is HTTP Tunneling?
Can we write a constructor for a Servlet class ? if yes how ? if no why not ?
What are the difference between session and cookies in servlet? Explain
How the JSP file will be executed on the Server side?
how a user session can be tracked in servlets?
In servlets, Why do we need both GET and POST method implementations?
Explain in brief the directory structure of a web application?
Define the lifecycle for executing a jsp page.
What happens, when client requests for server object, which is not yet loaded into the memory?