Manipulating Variables Flashcards

1
Q

Increment and Decrement Operator

A

Increment Operator: ++ (will increase value by one)
Decrement Operator: – (will decrease value by one)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does int division work?

A

Will divide numbers regularly and floor remainders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Arithmetic Exception Error

A

Occurs when you try and divide a number by zero

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Modulo Operator

A

Gives the remainder after two numbers are divided

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Compound Assignment Operator

A

num += 8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

.equals()

A

Compares objects such as strings, and sees if they are the same

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Final Keyword

A

Will make a variable unchangeable
Example:
final int yearborn = 1986

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly