DEVFYI - Developer Resource - FYI

Why do we need to use getSystemResource() and getSystemResources() method to load resources?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

164. Why do we need to use getSystemResource() and getSystemResources() method to load resources?

Because we want to look for resources strictly from the system classpath, These methods use the system ClassLoader to locate resources, which gives you stricter control of the resources used by the application.

(Continued on next question...)

Other Interview Questions