int是32位还是长64位,而不管系统是32位还是64位? [英] Will an int be 32bit and a long 64bit regardless of whether the system is 32 or 64 bit?
本文介绍了int是32位还是长64位,而不管系统是32位还是64位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Java中,无论体系结构是32位还是64位,是否都可以确保int始终为32位大小并且可以长为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.
这篇关于int是32位还是长64位,而不管系统是32位还是64位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文