Can we define constructor in Servlet class?
Answer Posted / naveen
yes we can create a constructor
by default JVM calls default constructor.In addition to that if write both default and parameterized constructor then JVM call default one and then parameterized one
hence the ans is yes we hav to write two constuctors
no if write our own constructor one itself
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How servlets are deployed in java?
What are the key methods that are involved in processing of http servlets?
How do you communicate in between Applets and Servlets?
Explain the war file?
How do you design microservices?
What methods do you use in servlet - applet communication?
What methodology can be followed to store more number of objects in a remote server?
Explain the concept of ssi ?
Why do we need servlet filter?
Explain the architechure of a servlet?
What is the functionality of actionservlet and requestprocessor?
What is the dispatcher servlet?
What are all the advantages of servlet over cgi?
What do you mean by annotations in servlet?
What is a servlet?