", "<", ">=", " <=", "==", "!="; 4. Logical operators, "&", "&&", "|", "||", "!"; 5. Conditional operators, "?: "; 6. Bit operators, "&", "|", etc."/> ", "<", ">=", " <=", "==", "!="; 4. Logical operators, "&", "&&", "|", "||", "!"; 5. Conditional operators, "?: "; 6. Bit operators, "&", "|", etc.">
There are six types of Java operators, namely: 1. Arithmetic operators, " ", "-", "*", "/", "%", " ", "--"; 2 , Assignment operators, "=", "=", "-=", "*=", "/=", " "; 3. Comparison operators, ">", " =”, “
The operating environment of this tutorial: 1. Windows 10 system, Java 20 version, DELL G3 computer.
Java operators are divided into six major categories: arithmetic operators, assignment operators, comparison operators, logical operators, conditional (ternary) operators, bitwise operators
1. Arithmetic Operators: (addition), -(subtraction), *(multiplication), /(division),%(remainder), (auto-increment), --(auto-decrement)
2. Assignment operators :=(equal to), =(increment by one time is equal to), -=(decrement by self once is equal to), *=(multiply by self once is equal to),/=(divide by self once is equal to), (string concatenator)
3. Comparison operators: > (greater than), = (greater than or equal to),
The return result is only: true or false
4. Logical operators: & (bitwise AND), && (short-circuit AND), | (bitwise OR), || (short-circuit OR ),!(Not, that is, negation)
5. Conditional (ternary, ternary) operators:?:
6. Bit operators (all based on binary calculations) : & (bitwise AND), | (bitwise OR), ^ (exclusive OR operation), > (right shift operator), >>> (Unsigned operator), ~ (not, negate operator)
Just need to know about bit operators
Note: Integer defaults to int type
1. Arithmetic operators: (addition), - (subtraction), * (multiplication), / (division), % (remainder), (auto-increment), -- (auto-decrement)
1.
twenty three .*
4./
Note: The integer defaults to int type, and must be accurate to the value after the decimal point To cast
##5.% 6. It is divided into two types: i (first self-added and then output) and i (first self-added and then self-added, commonly used). The general explanation is that whoever is in front will be output first.The above is the detailed content of What are the classifications of java operators?. For more information, please follow other related articles on the PHP Chinese website!