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
If two threads have same priority which thread will be executed first ?
What is garbage collector?
Explain the private protected method modifier?
What is sizeof in java?
When should you use arraylist and when should you use linkedlist?
What is a byte array?
What is <> used for in java?
What is meant by string is immutable?
Can we use different return types for methods when overridden?
Why is singleton not thread safe?
What is jvm? Why is java called the platform independent programming language?
Why do we use string?
What is a condition in java?
What is Java Package and which package is imported by default?
What is object in java?