Chapter 7 Flashcards

1
Q

What five steps are required to run a test?

A

1) Decide which method you want to test
2) Set up a known situation
3) Determine the expected result of executing the method
4) Execute the method
5) Verify the results

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

What are the six numeric types?

A

byte, short, int, long, float, double

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

What is enumerations?

A

When you declare multiple values in the same line, they all must have the same type.

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

Define casting

A

When we assign a specific type to the answer of an arithmetic operation

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

Define a class variable

A

Relates to the class as a whole rather than just an individual object

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

What are the 3 differences between a class and an interface?

A

1) An interface uses the keyword interface instead of class
2) An interface cannot extend a class
3) Method bodies are omitted in an interface

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