当前位置:网站首页>How much memory does the data type occupy? LongVsObject

How much memory does the data type occupy? LongVsObject

2022-06-27 08:30:00 C_ x_ three hundred and thirty

stay Java in , In the following data types , What needs the most memory is ()

byte
long
Object
int

The answer is undoubtedly long

emphasize Object

Object Is the reference data type , Declare without creating an instance , It will only open up space in stack memory , The default is empty. , Duty cycle 1 bit.

原网站

版权声明
本文为[C_ x_ three hundred and thirty]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270823528839.html