Java Built-in Classes Flashcards
1
Q
Number
A
is a superclass of Wrapper classes ( Integer, Double,Float…)
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
3
Q
some methods of Number class
A
valueOf(),parseInt(),toString(),equals(), compareTo(),min(),max()…
4
Q
Boolean
A
true or false
5
Q
some Character methods
A
hashCode(),isLetter(),isDigit(),isWhitespace(), toUpperCase()…
6
Q
Array
A
a data structure which is fixed-size and store elements of the same data type.
7
Q
Example of passing an array as argument to a method
A
printArray(new int[]{1,2,5,3,9,11});
8
Q
Some Arrays method
A
*binarySearch()
*equals()
*fill()
*sort()
9
Q
Some Math class methods
A
max(),min(),abs(),sqrt()…