2.8 Wrapper Classes: Integers and Doubles
-
Incorrect
Correct
No Answer was selected
Invalid Answer
Vocabulary
Term | Definition |
---|---|
Integer(int value) and Double(double value) | Constructs a new Integer object or a new Double Object that represents the specified int or double value |
Integer and Double Classes | These classes are part of the java.lang package and Object class and have a number of useful methods. |
Integer.MIN_VALUE and Integer.MAX_VALUE | The minimum/maximum value represented by an int or Integer, which are -2147483648 and 2147483647 |
int intValue() and double doubleValue() | Returns the value of this Integer as an int and this Double as a double |
Autoboxing | Automatic conversion between primitive types and their corresponding object wrapper classes |
Unboxing | Reverse of autoboxing; automatic conversion from the wrapper class to the primitive type |