Computer Applications
Name some methods that are commonly available in all wrapper classes and in all numeric wrapper classes.
Java Library Classes
8 Likes
Answer
Methods available in all wrapper classes are:
- toString()
- valueOf()
Methods commonly available in all numeric wrapper classes are:
- xxxValue() methods — byteValue(), shortValue(), intValue(), longValue(), floatValue(), doubleValue().
- parseXXX methods — parseByte(), parseShort(), parseInt(), parseFloat(), parseLong(), parseDouble().
Answered By
6 Likes