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 is servlet used?
Differentiate between the get and post method
What method is used to create database connection in servlets?
Why do we have servlet listeners?
Define declaration.
What are setSecure() and getSecure() methods in Cookies?
Can you refresh servlet in client and server-side automatically?
What is servlet in tomcat?
Explain in detail about applet to servlet communication?
Which application server is best for java?
What is a servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255