Learn Java Operators/ Arithmetic/ Relational/ Ternary/ Shorthand/ shiftOperator/ Unary Operators.

preview_player
Показать описание
Java arithmetic operators -are used to perform addition, subtraction, multiplication, and division.

Java left shift operator - is used to shift all of the bits in a value to the left side of a specified number of times.
Java logical && operator doesn't check the second condition if the first condition is false. It checks the second condition only if the first one is true.
Java Ternary operator is used as one line replacement for if-then-else statement and used a lot in Java programming. It is the only conditional operator which takes three operands.
Java assignment operator is one of the most common operators. It is used to assign the value on its right to the operand on its left.
The Java unary operators require only one operand. Unary operators are used to perform various operations i.e.:
•incrementing/decrementing a value by one
•negating an expression
•inverting the value of a boolean

Рекомендации по теме
welcome to shbcf.ru