CLASS
-
Class.getResource vs. ClassLoader.getResourceComputer/Programming 2009. 5. 12. 00:38
Java API Documentation에서 보면 먼저 Class에 있는 getResource를 보자. Class는 일단 instance가 있어야 부를 수가 있다. public URL getResource(String name)Finds a resource with a given name. The rules for searching resources associated with a given class are implemented by the defining class loader of the class. This method delegates to this object's class loader. If this object was loaded by the bootstrap class loader, th..