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
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version
Useful JavaScript development tools