Using Automatically Imported, prewritten constants and methods Flashcards

1
Q
  • _______- group of similar types of classes, interfaces and subpackages.
A

Java Packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • _______– automatically imported into every program that you write. It contains the fundamental classes that provide the basis of the Java programming language
A

java.lang package

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

contains constants and methods used to perform common mathematical functions.

A

java.lang.Math class

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

– commonly used Math class constant.

A

PI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • so any program can access it directly
A

Public

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • ___ - so it cannot be changed
A

Final

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  • so only one copy exists and you can access it without declaring a Math object
A

Static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  • __- - so it holds a floating-point value
A

Double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • Syntax to use the constant PI:
A

Math.PI

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

– indicated that it can be replaced by any set of characters.

A

Wildcard symbol (*)

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