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 does i ++ mean in Java?
what is a thread pool in java and why is it used?
What is the meaning of flag day?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
List out five keywords related to exception handling ?
How do you clear an arraylist in java?
What does this () mean in java?
What are the different collection views provided by maps?
How does map works in java?
Can Exception handling we can handle multiple catch blocks?
What is java util?
Is class is a data type?
Can we have two main methods in a java class?
How hashset works internally in java?
Explain the difference between runnable and callable interface in java?