Java Learning Notes

Source: Internet
Author: User

1. Case sensitivity

2. Naming specification

3. Key words

4. Data type

Floating-point type in the decimal value is not accurate, can only be very similar to the number and approximate value

The difference between a float and a double

Double the valid bit is 15-16 bits, if this range is exceeded, the last one is given randomly.

Double e=123.45678900000006//This is 17 bit, but the result thought it might be 123.4567890000001, 123.4567890000009, 123.456789

Boolean type

Character type

Data type conversion-default conversion (large to small)

Data type conversions-casts (small to large)

Data type conversion-size capacity data blending operations

Shaping and shaping operations, the result is plastic, without strong transfer such as:

Java Learning Notes

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.