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
What interface is extended by awt event listeners?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
java Technical questions asked by JPMC
How do you ensure that n threads can access n resources without deadlock?
What is literal example?
How do you trim a space in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What is the class in java?
How will you load a specific locale?
What is ascii code?
Can a class be declared as static?
what is mutual exclusion? : Java thread
Define class?
Is main an identifier?
What is the purpose of main function in java?