1.各种数据类型所占字节数和表数范围
Int 32 4 -2,147,483,648 ~ 2,147,483,647Short 16 2 -32768 ~ 32678long 64 8 -9,223,372,036,854,775,808~+9,223,372,036,854,775,807float 32 4 -3,40292347E+38 ~ +3,40292347E+38double 64 8 -1.79769313486231576E+308 ~ 1.79769313486231576E+308char 16 2 -128~127boolean 1 1 true/falsebyte 8 1 -128 ~ 127
时间: 2024-10-14 07:02:33