Which of the wrapper classes have a booleanValue()
method?.
Select the one correct answer.
compareTo()
method.(e)
While all numeric wrapper classes have the methods byteValue()
, doubleValue()
, floatValue()
, intValue()
, longValue()
, and shortValue()
, only the Boolean class has the booleanValue()
method.
Likewise, only the Character class has the charValue()
method.