Java Relational operators

Source: Internet
Author: User
Tags arithmetic operators logical operators

Tag: Represents the Java relational operator expression conversion numeric operator coercion type conversion arithmetic operator character

Variable naming rules
Variable name: consists of numbers, characters, underscores, dollar signs.
But you cannot start with a number.

Assignment operations
Variable name = expression;

Arithmetic operators
+ - * / %
+ + self-tuning
--Self-reduction

Type conversions
Automatic type conversion Large type = small type;

Coercion type conversion small type = (small type) large type;

Note overflow may occur when casting type conversions.

Relational operators

> (greater than),< (less than)
= = (equals)! = (not equal to)
>= (greater than or equal) <= (less than or equal)

Note: = = = = Equals, = indicates assignment;

Boolean type
Only a value of true and false two;

Operator Operation Precedence
() > Arithmetic operators > Relational operators > Logical operators > Assignment operators;

丨 (OR) && (with)! (non)

Java Relational operators

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.