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
Answers were Sorted based on User's Feedback
Answer / om
It 'll take serv2, b'coz <load-on-startup>0</load-on-startup>
means no tag. so first it'll goes to serv2.
Normally the servlets 'll loaded after getting the request
from the client.
if the servlets has to execute before coming the request we
need to take<load-on-startup>1</load-on-startup>.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / 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 |
What is this () in java?
What causes memory leak in java?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is the major drawback of internal iteration over external iteration?
what is main purpose of interface?
2 Answers Accenture, HCL, NIIT,
What is difference between path and classpath variables?
How to extract HashMap values?
how can u apply shallow cloning and deep cloning to create object?
What is complexity in java?
What are the two types of exceptions in java? Which are the differences between them?
What does sprintf return?
What methodology can be employed to locate substrings inside a string?