立即学习:https://edu.csdn.net/course/play/26302/333411?utm_source=blogtoedu
byte 1个字节 8位;short、char 2个字节 16位;int float 4个字节 32位;double、long 8个字节 64位;
所以0000-0004(不包括0004)4个byte,共32bit,从0008以后采用一个byte进行标签,减少用整型int 4个字节 32位来标记,(bit:位 byte:字节)
立即学习:https://edu.csdn.net/course/play/26302/333411?utm_source=blogtoedu
byte 1个字节 8位;short、char 2个字节 16位;int float 4个字节 32位;double、long 8个字节 64位;
所以0000-0004(不包括0004)4个byte,共32bit,从0008以后采用一个byte进行标签,减少用整型int 4个字节 32位来标记,(bit:位 byte:字节)