无论系统是 32 位还是 64 位,int 是 32 位还是 64 位长? [英] Will an int be 32bit and a long 64bit regardless of whether the system is 32 or 64 bit?
本文介绍了无论系统是 32 位还是 64 位,int 是 32 位还是 64 位长?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 java 中,无论架构是 32 位还是 64 位,int 是否都保证始终为 32 位大小且 long 始终为 64 位大小?
In java, is an int guaranteed to always be of 32bit size and a long of 64bit size regardless of whether the architecture is 32 or 64 bit?
推荐答案
Java 是独立于平台的.所以 int
是 32 位,long
是 64 位.
Java is platform independent. So int
is 32-bits, and long
is 64-bit.
这篇关于无论系统是 32 位还是 64 位,int 是 32 位还是 64 位长?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文