Java operator Summary (translated from Java tutorials)

Source: Internet
Author: User

From http://www.cnblogs.com/ggjucheng/archive/2012/12/15/2812966.html

English from http://docs.oracle.com/javase/tutorial/java/nutsandbolts/opsummary.html

Simple value assignment operator
= Simple value assignment operator
Arithmetic Operators
+ Addition operator-subtraction operator * multiplication operator/division operator % modulo operator
Unary operator
+ Mona1 + operator; indicates a positive value (but the value is positive by default)-mona1-operator; returns the inverse ++ auto-increment operator; increments the value by 1-the auto-increment operator; reduce the value from 1! Logical operator to reverse the Boolean Value
Equal and comparison Operators
= Equal! = Not equal to> greater than> = greater than or equal to <less than <= less than or equal
Conditional Operators
& Conditions and | condition or? : Ternary (If-then-ElseStatement stenographer)
Type comparison operator
Instanceof comparison object and specific type
Bitwise AND bitwise moving Operators
~ Complement by bit <shift to the left with a symbol> shift to the right without a symbol & shift to the right by bit and ^ by bit or | by bit or
Related Article

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.