Operators Flashcards
+, -, *, /, %
mathematical operators
- is also used to
pass an array to a vararg parameter
= - __________ operator and is used to specify _________ values for ___________.
assignment operator and is used to specify default values for parameters
+=, -=, *=, /=, %=
____________ _________ operators
augmented assignment operators
++, –
__________ and _________ operators
increment and decrement operators
&&, ||, !
____________ operators
logical ‘and’, ‘or’, ‘not’ operators
==, !=
_________ operatos
Translated to calls of __________ () for non-primitive types.
equality operators (translated to calls of equals() for non-primitive types)
===, !==
__________. __________ operators.
referential equality operators
less/greater than and less/greater or equal to
__________ operators
Translated to calls of __________ () for non-primitive types.
comparison operators (translated to calls of compareTo() for non-primitive types)
[, ]
________ ________ operators
Translated to calls of _________ and ___________.
indexed access operator (translated to calls of get and set)
!! asserts that an ___________ is ____________ .
… an expression is non-null
?. Performs a _______ _______
performs a safe call
calls a method or accesses a property if the receiver is non-null
?:. The __________ operator
_______ the right hand value if the left hand value is ________
takes the right-hand value if the left-hand value is null
the elvis operator
::creates a _______ or a _________ reference.
creates a member reference or a class reference
.. creates a _________
creates a range