Answer Posted / sanjay sah
Yes, we can create constructor for servlet but that one
should be public no-args constructor.
If we do not create then compiler itself takes care for
it.Servlet container creates instance of servlet by invoking
public no-agrs constructor.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain the servlet filter.
Which java framework is most popular?
What do you mean by web applications?
How printwriter is different from servletoutputstream?
What is httpservlet class?
How a servlet is unloaded?
What must be implemented by all servlets?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Explain the steps involved in placing a servlet within a package?
Explain web container.
Describe in brief RequestDespatcher?
What is called Scriptlet?
What is the disadvantage of cookies?
Why the container loads server at the application startup and how?
Difference between doget and dopost?