Java Fundamentals-Data types

Source: Internet
Author: User

Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.

I. Data type (eight types):

1. The computer's storage carry: bits are the smallest unit of storage data, and so on,

2. In Java we can use 0b or 0x to represent binary and 16

such as: 0xABC or 0b01010001;

3. In Java, the data stored in the high level is 1 is negative, the high is 0 is positive;

4.Java Data Type Details:

Integer value: int short: Less than 32767 byte: less than 127

Decimal value: Double

Single quote: char (can be assigned a number) Boolean:true, False

① integer type (four types): byte short int long,

② character type: char,

③ floating-point type: float double

④ Boolean Type: Boolean

Java Fundamentals-Data types

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.