ch4 Flashcards
1
Q
For which types can you use the + operator?
A
numeric primitives, String concatenation
2
Q
-= is a …?
A
compound operator
3
Q
Relational operators always result in a …?
A
boolean
4
Q
What happens if you use the instanceof operator accross different class hierarchies?
A
compiler error
5
Q
How is %
called?
A
remainder operator / modulus operator
6
Q
Can you use the increment operator for a final variable?
A
No.
7
Q
What is the difference between the & and && operators?
A
&&: short-circuit => No unnecessary evaluations.