Resource with same path and name may exist in more than one JAR file on the classpath. Common cases are resources following a convention or that are part of a packaging specification. Examples for such resources are
META-INF/MANIFEST.MF
META-INF/beans.xml (CDI Spec)
ServiceLoader properties con...
Resource loading in Java comprises the following steps:
Finding the Class or ClassLoader that will find the resource.
Finding the resource.
Obtaining the byte stream for the resource.
Reading and processing the byte stream.
Closing the byte stream.
The last three steps are typically accomp...