Java Note Native data type "two"

Source: Internet
Author: User

1. Data types in Java are divided into:1) native type (primitive Data type)2.) Reference type (object type) (Reference type)1. Variables and constants: constants: The amount of value that does not change; variable: the value can change;3If a variable is defined: variable-type variable name;intA;4. Assignment of variables: a= 2, 3 and 4 are separated, of course, can be combined to express;intA = 2; Such representations and 3,4 are equivalent;intA = 2; intA; a= 2;5. One "=" and "two" = ="The difference between one"="indicates that the assignment is not equal to two"=="represents an equal6variable Name Description: In Java, the variable name is underlined, the letter, the $ symbol switch, and follows the underscore, letter, $, and number. In short, you cannot start with a number in Java;

Java Note Native data type "two"

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.