Java byte data type

In the sun tutorial, it says a byte:

How does it save memory? What is 2's praise?

Solution

It saves memory by consuming only 8 bits of storage, while the integer is 32 The size of the array is directly proportional to the size of the data type contained; An integer array will consume about four times as much memory as a byte array (manual wave)

Start with Wikipedia:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>