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 is the marker interface used in Java?
What are the major advantages of internal iteration over external iteration?
What is void data type?
Can a set contain duplicates?
Can we serialize static variables in java?
What is widening and narrowing in java? Discuss with an example.
what is object-oriented programming in java?
What is the purpose of using java.lang.class class?
How to implement a multithreaded applet?
What is a programming object?
What is close method? How it's different from Finalize & Dispose?
Explain the difference between runnable and callable interface in java?
What is one third plus one third as a fraction?
What is jvm? Why is java called the platform independent programming language?
Can a top level class be private or protected?