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


Please Help Members By Posting Answers For Below Questions

If two threads have same priority which thread will be executed first ?

842


What is garbage collector?

618


Explain the private protected method modifier?

542


What is sizeof in java?

555


When should you use arraylist and when should you use linkedlist?

488






What is a byte array?

585


What is <> used for in java?

667


What is meant by string is immutable?

515


Can we use different return types for methods when overridden?

554


Why is singleton not thread safe?

647


What is jvm? Why is java called the platform independent programming language?

541


Why do we use string?

575


What is a condition in java?

535


What is Java Package and which package is imported by default?

591


What is object in java?

530