+ + self-increment front: First operation after the value a=3; B=++a; a=4; b=4;+ + + self-increment: First take value after Operation A=3; b=a++; a=4; b=3;--self-reducing pre-set: First operation after the value a=3; b=--a;a=2;b=2;--Self-reduction
Like C, Java provides a rich shortcut for computing. These shortcuts can make the code more refreshing, easier to input, and easier for readers to read.Two good shortcuts are the increment and decrement operators (often referred to as "AutoIncrement"
the Java operators include the following: arithmetic operators, comparison operators, bitwise operators, logical operators, assignment operators, and other operators. (The figure is from the network)simple operators, it is not too much to introduce
4. JAVA programming ideology-control program flow
Control Procedure Flow
In Java, we use operators to manipulate objects and data and use execution control statements to make choices. Java is based on C ++. Therefore, for C and C ++ programmers,
Python's object allocation is similar to Java's. It's completely different from Ruby's (Ruby will allocate the object chain in advance),Python's garbage collection mechanism is too low-end, but only in the 90 's Java, with reference counting method
1. for smart pointers, security first, convenience second, localization (scoped_ptr) as much as possible );
2. Add const to the referenced parameter; otherwise, use the pointer parameter;
3. Use of function overloading should be clear and easy to
Welcome to my repo and I co-editor: Https://github.com/archimekai/JavaABCCommon minor problems in JAVA Abc:javaNote: Jdkapi document (http://docs.oracle.com/javase/8/docs/api/index.html or download CHM format from Http://cf.pku.cn/tds/java)The
Operator data type conversions:Small data type--------> Big data type (automatic type conversion)Big Data Types---------> Small data types (coercion type conversions)To enforce the format of type conversions:
Small data type variable name =
Unary operatorAn operator that can manipulate only one value is called a unary operator. The unary operator is the simplest operator in ECMAScript.1. Increment and decrement operatorsThe increment and decrement operators draw directly from C, and
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.