JVM学习六(类文件结构)
2020-02-16 本文已影响0人
rrrwx
类文件结构
https://www.cnblogs.com/chanshuyi/p/jvm_serial_05_jvm_bytecode_analysis.html
https://blog.csdn.net/A_zhenzhen/article/details/77977345
Class文件是一组以8位字节为基础单位的二进制流。

(一)魔数:0xCAFEBABE 用于校验
(二)版本号
(三)常量池:
cp_info ---

(四)访问标记:
通过相加计算得到访问标记

(五)类索引、父类索引、接口索引
(六)字段表:描述接口和类中声明的变量
field_info ---
(七)方法表
method_info ---
(八)属性表
attribute_info ---
虚拟机规范预定义的属性:
