Java Variable Additions

Source: Internet
Author: User

1. Summary of the last class work evaluation

A) Stitching general steps: The string and the variable one by one first row, the middle of the space, the string of the addition of the escape character, and finally in the middle of the spaces with the connector +

b) When two lines of content to write in a console statement output, the string after the end of the newline escape character to add the connector +, in order to smooth the line to jump to the next line to display memory.

c) Variable naming rules: 1, the first 3 after 4, (the first character can only be selected between letters ,-,$ Three, other characters can only be in letters ,-,$, choice between the number four )

2. No conflict with System keywords

d) Specification of variable naming: 1, followed by hump (camel) nomenclature first character lowercase after each word first character uppercase other lowercase

2, variable name must have meaning

e) Data type conversion: 1, Automatic conversion condition data type to be compatible save smaller types of data to larger types of variable space

2. Coercion type conversion condition data type to be compatible the assignment of a cast syntax is required to store large types of data in a variable space of a smaller type

Syntax: target type variable name = (target type) data

f) Division and modulo operations of integers and integers in arithmetic operations: except 10 go to the bottom, modulo 10 takes the lowest

g) Variable and variable value exchange: The variable that needs to be inserted as an assignment in the two variables for which the intermediate value is exchanged as a copy receive value

h) Sort data type precision from "Bottom to High": byte<short<int<long<float<double (conversion of data type conversions results in loss accuracy)

Java Variable Additions

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.