一个字节=一个byte=8位
一个字=两个byte=16位,
java中:
byte=8位
short = 2byte = 16位
int = 4byte = 32位
long = 8byte = 64位
float = 4byte = 32位
double = 8byte = 64位
char = 4byte = 32位
string = 可占用Integer.MAX_VALUE个char = (32*Integer.MAX_VALUE)位
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/217799.html原文链接:https://javaforall.net
