The Integer and Double Classes Flashcards

1
Q

Purpose of wrapper classes

A

To convert between primitive data and objects

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

What type of input do ArrayLists accept?

A

only objects, not primitive data

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

How are ints and doubles added to ArrayLists?

A

Using the Integer and Double classes

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

autoboxing

A

Automatically converting primitive data to an object

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

unboxing

A

When accessing data, it converts objects back to primitive data

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

.intValue()

A

will get the value stored in the Integer wrapper class

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

Integer.MAX_VALUE

A

return the largest value which an integer can store

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

Integer.MIN_VALUE

A

return the smallest value that an integer can store

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

Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY

A

allow infinity and negative infinity to be store in code

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