众所周知,java使用以下数据类型
byte Occupy 8 bits in memory
short Occupy 16 bits in memory
int Occupy 32 bits in memory
long Occupy 64 bits in memory
如果我创建一个类
class Demo{
byte b;
int i;
long l;
}
Demo obj = new Demo();
现在我的问题是objsize< or > or =的大小b+i+l是104 bytes. 请给我一个有正当理由的澄清。
谢谢,
阿尼尔库马尔 C