can v create a constructor 4 servlet?

Answer Posted / vijayalakshmi

yes, we can create constructor 4 a servlet,but its is
optional, because the compiler bydefault creates constructor
4servlet.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2920


What is the difference between Server and Container?

622


What are the uses of servlet and what is servlet chaining?

562


What is the use of send redirect () method?

590


How a servlet is unloaded?

591






How can I send user authentication information while making URL Connection?

549


What is servlet and how it works?

508


What mechanisms are used by a Servlet Container to maintain session information?

670


What is SingleThreadModel interface?

677


Which http method is said to be non-idempotent and idempotent?

608


When should you prefer to use doget() over dopost()?

664


What are the types of Session Tracking ?

648


How do cookies work in servlets?

583


What's the architecture of a servlet package?

558


What are the objects involved when a servlet receives a call from client?

549