Answer Posted / paidi
Yes, It can possible to create the constructor inside the
servlet , it wont give any exception or error for creation
and it compile properly. But, Servlet initialization will
done by container. Container calls the init() to
initialize the servletconfg obj. No Use to write the
constructor inside the servlet.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
The code in a finally clause will never fail to execute, right?
What do you mean by httpservlet and how it is different from the genericservlet?
Differentiate between the get and post method
What is cgi?
What is dispatcher servlet?
What are life cycle methods of a servlet?
What is difference between server and servlet?
What is servlet and its advantages?
What is the difference between 2 types of servlets?
Define the lifecycle for executing a jsp page.
Whats the advantages using servlets over using CGI?
What is servlet looping or chaining?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
Which java application server is the best?
Is servlet a controller?