gpt4 book ai didi

Java: "long"数字占用多少内存?

转载 作者:行者123 更新时间:2023-12-02 05:32:18 26 4
gpt4 key购买 nike

这两个数字在内存中占用的字节数相同(64位)吗?长a=25L长b=3543451651313213232168498L

最佳答案

是的,尺寸已按照 the language specification 固定:

The integral types are byte, short, int, and long, whose values are 8-bit, 16-bit, 32-bit and 64-bit signed two's-complement integers, respectively [...].

关于Java: "long"数字占用多少内存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17941279/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com