Can we define constructor in Servlet class?
Answer Posted / sanjeev kumar
We never can create the Servlet instance. hence there is no
chance of having constructor in servlets. Servlet life
cycle methods (init(), service(), destoy())are called by
the servlet container.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
Write a simple servlet program to print the contents of html.
How do you load an image in a Servlet?
What is MIME Type?
Define the lifecycle for executing a jsp page.
What is the type of method for sending request from http server?
How do we share data using 'getservletcontext ()?
What are the disadvantages of storing session state in cookies?
What is difference between jsp and servlet?
What do you mean by chaining in servlet?
How do we call one servlet from another servlet?
How can we refresh automatically when new data has entered the database?
What are some disadvantages of storing session state in cookies?
What do you mean by mime type?
how the HTML data stored in web server?
How can you create a session in servlet?