Char And Boolean Flashcards
1
Q
Wat sal j stoor in n char?
A
Net enkel karakters
char a = ‘a’;
2
Q
Jy kan ook unicode gebruik hoe sal dit lyk?
A
char a = ‘\u0045’;
3
Q
Is String n primitive type?
A
Nee, dit is n aparte klas
4
Q
Wat is operator? En n operand?
A
Operators is spesifieke simbole wat spesifieke operations verrih met operands (operands is dan by veranderlikes). Operators is ‘+’, ‘-‘ ens.
5
Q
Wat is die modulus operator?
A
% - gee jou die res waarde
So int a = 5%3 = 2
6
Q
result–;
A
result = result - 1;
7
Q
result +=2;
A
result = result + 2;