This may sound like bit silly. But just for the curiosity, I would like to know. Whenever we want to fetch a resource that is in our classpath, more often than not we use this getResource
method and it returns us a URL
Why does it return a URL object? as it has been stated in the doc,
Class URL represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web.
If so, why does it use to represent a resource that is located in the local storage? I know it is not a big deal. But I would like to know some explanations. Thank you.