在64位计算机上,以Java为32位或64位的int的大小是多少? [英] On a 64-bit machine is the size of an int in Java 32 bits or 64 bits?

查看:73
本文介绍了在64位计算机上,以Java为32位或64位的int的大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在64位计算机上,Java中int的大小是32位还是64位?

On a 64-bit machine is the size of an int in Java 32 bits or 64 bits?

推荐答案

32位.这是Java语言的功能之一,整数的大小不会随基础计算机的变化而变化.请参见规范的相关部分.

32 bits. It's one of the Java language features that the size of the integer does not vary with the underlying computer. See the relevant section of the spec.

这篇关于在64位计算机上,以Java为32位或64位的int的大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆