JVM调优_自定义类加载器
public class T005_LoadClassByHand {
public static void main(String[] args) throws ClassNotFoundException {
Class clazz = T005_LoadClassByHand.class.getClassLoader().loadClass("src.main.java.com.qqjx.jvm.T002_ClassLooaderLevel");
System.out.println(clazz.getName());
//利用类加载器加载资源,参考坦克图片的加载
//T005_LoadClassByHand.class.getClassLoader().getResourceAsStream("");
}
}
src.main.java.com.qqjx.jvm.T002_ClassLooaderLevel