what is load-on-startup in web.xml
In web application we have web.xml file which is also known as deployment descriptor, In web.xml file we have <load-on-startup> tag inside servlet tag. The <load-on-startup> is an optional tag in web.xml. The Server initializes this servlet when Server starts up. This tag is optional in web.xml file. The tag is define inside servlet tag only. The optional content of this element must be a positive integer indicating the order in which the servlet should be loaded. Priorities start from lower integer, lower integers are loaded before higher integers for example if you pass values as 1,2,3.. in respective servlets. Server will starts initialization of servlet from 1,2,3.. If no value is specified, or if the value specified is not a positive integer, then Server can load the servlet in any order during application startup Below is the example of web.xml with three different servlet with different priority: <?xml version="1.0" encoding="UTF-8"?...