Operators for Java

Source: Internet
Author: User

Compared to the C language, Java operators are a bit more complex, and the type is a little bit more relative. Here is the Java operator I wrote.
Operators for Java
Operator: 1. Increment and decrement operations: + 、-、 *,
2. Move operators: >>=, <<=, >>>=, <<<=
3. Boolean operator
& and such as: (a>0) & (a<1)
&& short circuit and such as: (a>0) & (a<1)
The difference is that when the first expression is false, the && will short-circuit and neither will judge the second expression
The difference between | and | | is when the first one is true | | Will short-circuit,
^ means: The true or the false is true, whether the person is false
4. Extended assignment operators: *=,/=
5. Comparison operator (more than one instanceof)
6. Trinocular operator

These are the Java operators, which, compared to the C language, have a move operator and a Boolean operator.

Operators for Java

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.