首页 > 编程语言 > 详细

java 数据类型

时间:2016-08-05 19:44:25      阅读:192      评论:0      收藏:0      [点我收藏+]

Literals

8bit   1byte    byte

16bit    2byte short

32bit 4byte int

64bit 8byte long

 http://docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.2.1

The values of the integral types are integers in the following ranges:

  • For byte, from -128 to 127, inclusive

  • For short, from -32768 to 32767, inclusive

  • For int, from -2147483648 to 2147483647, inclusive

  • For long, from -9223372036854775808 to 9223372036854775807, inclusive

  • For char, from ‘\u0000‘ to ‘\uffff‘ inclusive, that is, from 0 to 65535

0x0000 - 0xffff          0-65535

0x0000 - 0xFFFF       0-65535

java 数据类型

原文:http://www.cnblogs.com/zno2/p/4629973.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!