Chapter 2 Flashcards

1
Q

What is true if more than one class is in a source code file.

A

Only one of them may be public

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

Java API

A

The standard Java library

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

The System class in Java contains

A

Methods and objects that perform system-level tasks.

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

How character data is stored in Java

A

Unicode Characters

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

What keyword in Java indicates a constant value

A

final
final int CAL_SALES_TAX;

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

Primitive variables

A

Contain the value of that they have been assigned; int and float.

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

Reference variables

A

Contain the memory address of the object’s location; strings, other objects.

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