we r taking
<load-on-startup>0</load-on-startup>
<load-on-startup>1</load-on-startup> in deployment
descripter for loading servlets like serv1 N serv2? so 'll
it take serv1 or serv2
Answer Posted / mahesh babu puppala
Servlets with lower values are loaded before servlets with higher values. So servlet with 0 load-on-startup value will load first and servlet with value 1 will load after that.
so servlet1 first loaded then servlet2 will be loaded.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How many types of exception can occur in a java program?
Which is bigger double or float?
What's the default access specifier for variables and methods of a class?
What is a nullable field?
How the interruptible method gets implemented?
Can we force the garbage collection to run?
What is structure of java heap? What is perm gen space in heap?
Is finalize() similar to a destructor?
What is method overriding in java ?
Why do we need variables?
What is string :: npos?
What is lazy programming?
What is ++ a in java?
What is string pool in java?
Can a constructor be private and how are this() and super() method used with constructor?