Home > Common Problem > body text

What are the classifications of java operators?

zbt
Release: 2023-06-16 14:05:46
Original
2035 people have browsed it

There are six types of Java operators, namely: 1. Arithmetic operators, " ", "-", "*", "/", "%", " ", "--"; 2 , Assignment operators, "=", "=", "-=", "*=", "/=", " "; 3. Comparison operators, ">", " =”, “

What are the classifications of java 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.

What are the classifications of java operators?

What are the classifications of java operators?

twenty three .*

What are the classifications of java operators?

What are the classifications of java operators?

4./

Note: The integer defaults to int type, and must be accurate to the value after the decimal point To cast What are the classifications of java operators?

What are the classifications of java operators?

##5.%

What are the classifications of java operators?

What are the classifications of java operators?

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.

What are the classifications of java operators?

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!