类加载机制过程
java源代码编译过程 https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html A class file consists of a single ClassFile structure: 以下就是后缀为class的文件的一个说明 ClassFile { u4 magic; u2 minor_version; u2 major_version; u2 constant_pool_count; cp_info constant_pool[constant_pool_count-1]; u2 access_flags; u2 this_class; u2 super_class; u2 interfaces_count; u2 interfaces[interfaces_count]; u2 fields_count; field_info fields[fields_count]; u2 methods_count; method_info methods[methods_count]; u2 attributes_count; attribute_info attributes[attributes_count]; } java的源文件经过javac的编译以后就会编译为后缀为.class 16进制的文件。