java中boolean、byte、short、int、long、char、float、double类型取值范围

boolean、byte、short、int、long、char、float、double的内存大小以及取值范围,如下图

小贴士

1、Char类型占两个字节,而不是一个字节。

2、Byte类型占一个字节,是整数类型的一种。

3、所有数据类型长度固定,不随着硬件软件系统不同而不同。

4、String类型不是基本数据类型,而是引用数据类型。

未经允许不得转载:陈海飞博客 » java中boolean、byte、short、int、long、char、float、double类型取值范围

分享到:更多 ()

评论 3

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #3

    A lot of thanks for all your hard work on this blog. Kate really likes setting aside time for investigation and it’s simple to grasp why. All of us hear all about the powerful mode you produce rewarding tips by means of the web blog and therefore invigorate participation from the others on the concern plus our own simple princess is discovering a lot. Take pleasure in the remaining portion of the year. You’re performing a remarkable job.

    yeezy boost 3501周前 (07-11)回复
  2. #2

    Good post. I be taught one thing more difficult on totally different blogs everyday. It can at all times be stimulating to learn content from other writers and apply slightly something from their store. I抎 desire to make use of some with the content material on my weblog whether you don抰 mind. Natually I抣l give you a hyperlink in your internet blog. Thanks for sharing.

  3. #1

    I intended to create you that little bit of remark to help thank you the moment again for these stunning information you have discussed on this site. This is quite remarkably open-handed of people like you to provide extensively exactly what a few people could have distributed for an e book to help make some cash for themselves, primarily considering that you might have done it in case you decided. The pointers in addition worked to be a good way to fully grasp other individuals have the same dreams just as my very own to know the truth way more in regard to this condition. I’m sure there are a lot more enjoyable opportunities ahead for individuals that check out your site.