KnowledgeBoat Logo
|

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:

  1. toString()
  2. valueOf()

Methods commonly available in all numeric wrapper classes are:

  1. xxxValue() methods — byteValue(), shortValue(), intValue(), longValue(), floatValue(), doubleValue().
  2. parseXXX methods — parseByte(), parseShort(), parseInt(), parseFloat(), parseLong(), parseDouble().

Answered By

6 Likes


Related Questions