java反射 ClassLoader 和 Class.forName() 的区别
package fanshe;public class Person {private int age;private String name;static {System.out.println("initial static block...");}}package fanshe;import java.lang.reflect.Array;import java.lang.reflect.Field;import java.lang.reflect.Method;public class Mymain {public static void main(String[] args) throws Exception{ClassLoader c1 = ClassLoader.getSystemClassLoader();c1.loadClass("fanshe.Person");System.out.println("系统加载Person类");Class.forName("fanshe.Person");}}