Can we define constructor in Servlet class?
Answer Posted / jayakrishna
init() is there what is the need of constructor.If is ther
who will call the constructor? servlet container will call
the init method
Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
If some new data has entered the database, explain how can a servlet refresh automatically?
What are the phases of the servlet life cycle?
Tell us something about servletconfig interface.
Should I override the service() method?
What is a servlet-to-servlet communcation?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
Write a simple servlet program to print the contents of html.
What is servlet container?
Servlet is pure java object or not?
What's the servlet interface?
What is the difference between genericservlet and httpservlet
What is the difference between Servlets and Applets?
Explain the methods of request dispatcher in servlet?
Write a program to show the functionality of servlets.
What are the life cycle methods of a servlet?