Can we define constructor in Servlet class?

Answer Posted / sitaram

in java, we can access any class, first JVM search the any
type(with or with out parameters) constructor. if it their
the same constructor will be calling other wise JVM create
the default constructor for that class.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string tokenizer?

816


What is load-on-startup in servlet?

793


What is difference between jsp and servlet?

869


What is servlet and its life cycle?

809


Describe servlet?

765


What do you mean by default initialization in java servlet?

845


How do we call one servlet from another servlet?

754


How to get the current httpsession object?

863


What is the directory structure of web application?

713


What's the advantages using servlets than using cgi?

722


What is the importance of init() method in Servlet ?

801


How to get the server information in a servlet?

882


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

732


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

743


Explain the concept of ssi ?

789