java 数据类型
发布日期:2021-09-23 03:31:36 浏览次数:27 分类:技术文章

本文共 778 字,大约阅读时间需要 2 分钟。

原文http://www.roseindia.net/java/master-java/java-data-types.shtml

java 数据类型

The  ranges of these data types can bedescribed with default values using the following table:

Data Type Default Value (for fields) Size (in bits) Minimum Range Maximum Range
 byte  0 Occupy 8 bits in memory  -128  +127
 short  0 Occupy 16 bits in memory  -32768  +32767
 int  0 Occupy 32 bits in memory  -2147483648  +2147483647
 long  0L Occupy 64 bits in memory  -9223372036854775808  +9223372036854775807
 float  0.0f Occupy 32-bit IEEE 754 floating point 1.40129846432481707e-45  3.40282346638528860e+38
 double  0.0d Occupy 64-bit IEEE 754 floating point  4.94065645841246544e-324d  1.79769313486231570e+308d
 char  '\u0000' Occupy 16-bit, unsigned Unicode character    0 to 65,535
 boolean  false Occupy 1- bit in memory  NA  NA

转载地址:https://blog.csdn.net/aminoph/article/details/9075745 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:xcode自动打ipa包脚本
下一篇:Delphi 数据类型

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2024年03月31日 22时07分54秒