Java Built-in Classes Flashcards

1
Q

Number

A

is a superclass of Wrapper classes ( Integer, Double,Float…)

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

Boxing vs Unboxing

A

Boxing: is converting a primitive data type to an object (example from int to Integer).
Unboxing:opposite of boxing

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

some methods of Number class

A

valueOf(),parseInt(),toString(),equals(), compareTo(),min(),max()…

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

Boolean

A

true or false

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

some Character methods

A

hashCode(),isLetter(),isDigit(),isWhitespace(), toUpperCase()…

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

Array

A

a data structure which is fixed-size and store elements of the same data type.

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

Example of passing an array as argument to a method

A

printArray(new int[]{1,2,5,3,9,11});

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

Some Arrays method

A

*binarySearch()
*equals()
*fill()
*sort()

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

Some Math class methods

A

max(),min(),abs(),sqrt()…

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