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 difference between a static and a non-static inner class?

598


When a thread blocks on i/o?

573


How to pass parameters in RMI?

1693


How can I scroll through list of pages like the search results in google?

573


What is the difference between the session.get() method and the session.load() method?

604






If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

572


What’s jboss jbpm?

585


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

587


how do you Handle Front End Application data against DB with example?

1480


To identify IDL language what mapping mechanism is used?

3419


how to use debug in my elipse to solve problems that exist in my project

1766


Why is string immutable in java?

584


For which statements does it make sense to use a label?

592


Describe responsibilities of Activator?

1678


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1369