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
what are the activation groupworks?
What are various types of class loaders used by jvm?
Can I use javascript to submit a form?
what are RemoteObjects?
which type of objects reference will be given to client?
What are the sequence of steps to write pub or sub model kind of application?
What is ioc concept & explain it?
What is a modular application?
What is the difference between long.class and long.type?
Is there a guarantee of uniqueness for entity beans?
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!
What is the difference between the session.get() method and the session.load() method?
Explain the different types of memory used by jvm?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What is the purpose of the finally clause of a try-catch-finally statement?