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
: separates a _____ from a ______ in ____________.
separates a name from a type in declarations
? marks a _______ as __________.
marks a type as nullable
-> (3)
Separates the _____ and ____ of a lambda _______.
Separates the _____ and _____ _______ _______ in a function type.
separates the parameters and body of a lambda expression
separates the parameters and return type declaration in a function type
separates the condition and body of a when expression branch
@
introduces an ________________
introduces or references a
1) __________ label
2) ___________ label
references a
1) ______ expression from an _______ scope
2) an __________ superclass
introduces an annotation
introduces or references a loop label
introduces or references a lambda label
references a ‘this’ expression from an outer scope
references an outer superclass
;. Separates _______ statements on the ________ line.
separates multiple statements on the same line
$
References a __________ or ________ in a _______. ________
references a variable or expression in a string template
_ (2)
Substitutes an _________ parameter in a __________ expression and in a _________ declaration
substitutes an unused parameter in a lambda expression
substitutes an unused parameter in a destructuring declaration