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



we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on..

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

we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on..

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

Post New Answer

More Core Java Interview Questions

What are the types of methods in java?

0 Answers  


How many inner classes can a class have?

0 Answers  


how to prepare for IT Officers Interview in Banks

0 Answers   TATA, Tata Steel Limited,


Can we clone singleton object in java?

0 Answers  


How do you get the length of a string in java?

0 Answers  


How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


What are keywords in java?

0 Answers  


What is locale in java?

0 Answers  


What is substring in java?

0 Answers  


What is the difference between stream and buffer?

0 Answers  


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

0 Answers   V2 Solutions,


What is core java used for?

0 Answers  


Categories