Can we define constructors in Servlet?

Answer Posted / sitaram

Each every class execute in java. One default constructor or
define constructor must be calling. If you are not any
constructor write in your class. when execute the program ,
JVM automatically create the default constructor.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the immediate superclass of the applet class?

818


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

2008


Why do I get a duplicate name error when loading a jar file?

801


What is a clone?

777


Are there books about seam?

827


Why are some of the class and element names counter-intuitive?

805


What’s jboss jbpm?

749


Explain about thread synchronization inside a monitor?

2224


What is glasgow?

780


Should synchronization primitives be used on bean methods?

770


What is the infobus?

810


To what value is a variable of the string type automatically initialized?

859


Why doesn’t the focus feature on the tag work in every circumstance?

769


Difference between swing and awt?

821


What is the difference between ear, jar and war file?

798