Can we define constructor in Servlet class?
Answer Posted / sitaram
in java, we can access any class, first JVM search the any
type(with or with out parameters) constructor. if it their
the same constructor will be calling other wise JVM create
the default constructor for that class.
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What are the difference between session and cookies in servlet? Explain
Differentiate between the print writer and servlet output stream?
What is a generic servlet?
What are all the ways for session tracking?
Why do we use sendredirect() method?
What is servlet lazy loading?
Which interface should be implemented by all servlets?
Tell us something about servletconfig interface.
Which application server is best for java?
How to create war file?
What are different methods of session management in servlets?
How to commuincate between an applet and a servlet?
Why is httpservlet declared abstract?
How to upload a file to the server using servlet?
What is servlet in web technology?