004 - Operators Flashcards
Which operator is evaluated from right to left?
The assignment operator
Which is the order of precedence for operators?
postfix unary multiplicative additive shift relational equality bitwise AND bitwise exclusive OR bitwise inclusive OR logical AND logical OR ternary assignment
Which are the postfix operators?
expr++
expr–
Which are the unary operators?
\++expr --expr \+expr -expr ~ !
Which are the
multiplicative operators?
*
/
%
Which are the additive operators?
+
-
Which are the shift operators?
>
|»_space;>
Which is the type comparison operators?
instanceof
Which are the equality and relational operators?
==
!=
>
>=
Which are the bitwise operators?
Bitwise inclusive AND &
bitwise exclusive OR ^
bitwise inclusive OR |
Which are the logical operators?
logical AND &&
logical OR ||
Which are the ternary operators?
?
:
Which are the assignment operators?
= \+= -= *= /= %= &= ^= |= >= >>>=
What is concatenation and how is it used?
Joining two strings together
By using the operator +
What can a unary operator do?
operations such as
incrementing/decrementing a value by one,
negating an expression,
or inverting the value of a boolean.