Int: 4 字节
Short: 2字节
Long: 8字节
Byte: 1字节
Character: 2字节(可存放中文字符)
Float: 4字节
Double: 8字节
Boolean:系统没有提供Size方法;
运行结果:
Integer: 4
Short: 2
Long: 8
Byte: 1
Character: 2
Float: 4
Double: 8
Boolean: false
Int: 4 字节
Short: 2字节
Long: 8字节
Byte: 1字节
Character: 2字节(可存放中文字符)
Float: 4字节
Double: 8字节
Boolean:系统没有提供Size方法;
运行结果:
Integer: 4
Short: 2
Long: 8
Byte: 1
Character: 2
Float: 4
Double: 8
Boolean: false