Can we define constructor in Servlet class?
Answer Posted / naveen
yes we can create a constructor
by default JVM calls default constructor.In addition to that if write both default and parameterized constructor then JVM call default one and then parameterized one
hence the ans is yes we hav to write two constuctors
no if write our own constructor one itself
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What are important features of Servlet 3?
Write a hello world program using servlets.
What is the difference between the http servlet and generic servlet?
What are the advantages of cookies?
What do you mean by the servlet chaining?
What is the use of servlet context?
What is called servlet container?
What are the important functions of filters?
What are the key methods that are involved in processing of http servlets?
Is that servlet is pure java object or not?
What’s the use of the servlet wrapper classes??
Describe some assignments that are executed by servlet container?
What is httpservlet class?
Difference between java beans & servlets?
What do you mean by deployment descriptor?