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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a super method?

530


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

569


What is a heavyweight component?

542


which class is the wait() method defined in? : Java thread

521


What are the features of java?

529






What is the use of :: in java?

568


Why do we need hashset in java?

496


How to make a write-only class in java?

572


Discuss different types of errors that generally occur while programming.

575


What is abstract class constructor called?

563


What is difference between path and classpath variables?

563


What are the legal parameters?

505


List primitive java types?

591


What is role of void keyword in declaring functions?

570


What do you mean by thread safe?

537