Confusion about Resource loader, ClassLoader, inputStream, Loading and writing files in general

37 Views Asked by At

In one of my exercises, the text recommended to use the Resource loader, what is it?

My researches pointed toward ClassLoader.getResources() and this.getClass().getResources(); I assume it's something that searches the package for the file specified but how, and what are the differences between the two methods?

Can't I just make an InputStream with an absolute path and navigate in the package to where my files are?

0

There are 0 best solutions below