Locating resources in Java

Submitted by Little Tutorials » A resource is a file situated somewhere in the class path. It can be a file in a package folder, in the classes folder or in a jar file. Resources are usually needed at runtime and they can be properties files, images and so on. The ClassLoader and Class classes provide methods to find the desired resources but a little bit of attention has to be payed to the quirks of this API.
Rating: 4.0/5 | 202 clicks | 0 comments | 0 saves | share | report

Additional statistics

Average rating: 4.00/5.0
Clicks today: 0
Clicks this month: 4
Clicks total: 202
Number of comments: 0
Number of saves: 0