java语言中Bigdecimal类型占用多少个字节

2025-06-26 05:46:31
推荐回答(1个)
回答1:

1个字节是8位
只有8种基本类型可以算.其他引用类型都是由java虚拟机决定的自己不能操作
byte 1字节
short 2字节
int 4字节
long 8字节
float 4字节
double 8字节
char 2字节
boolean 1字节