## Uses of Class
java.lang.NumberFormatException

- Packages that use NumberFormatException
  Package | Description
  --- | ---
  java.lang |

- - ### Uses of NumberFormatException in java.lang

    Methods in java.lang that throw NumberFormatException
    Modifier and Type | Method and Description
    --- | ---
    `static Short` | Short.`decode(String nm)` Decodes a `String` into a `Short`.
    `static Long` | Long.`decode(String nm)` Decodes a `String` into a `Long`.
    `static Integer` | Integer.`decode(String nm)` Decodes a `String` into an `Integer`.
    `static Byte` | Byte.`decode(String nm)` Decodes a `String` into a `Byte`.
    `static byte` | Byte.`parseByte(String s)` Parses the string argument as a signed decimal `byte`.
    `static byte` | Byte.`parseByte(String s, int radix)` Parses the string argument as a signed `byte` in the radix specified by the second argument.
    `static double` | Double.`parseDouble(String s)` Returns a new `double` initialized to the value represented by the specified `String`, as performed by the `valueOf` method of class `Double`.
    `static float` | Float.`parseFloat(String s)` Returns a new `float` initialized to the value represented by the specified `String`, as performed by the `valueOf` method of class `Float`.
    `static int` | Integer.`parseInt(String s)` Parses the string argument as a signed decimal integer.
    `static int` | Integer.`parseInt(String s, int radix)` Parses the string argument as a signed integer in the radix specified by the second argument.
    `static long` | Long.`parseLong(String s)` Parses the string argument as a signed decimal `long`.
    `static long` | Long.`parseLong(String s, int radix)` Parses the string argument as a signed `long` in the radix specified by the second argument.
    `static short` | Short.`parseShort(String s)` Parses the string argument as a signed decimal `short`.
    `static short` | Short.`parseShort(String s, int radix)` Parses the string argument as a signed `short` in the radix specified by the second argument.
    `static Short` | Short.`valueOf(String s)` Returns a `Short` object holding the value given by the specified `String`.
    `static Long` | Long.`valueOf(String s)` Returns a `Long` object holding the value of the specified `String`.
    `static Integer` | Integer.`valueOf(String s)` Returns an `Integer` object holding the value of the specified `String`.
    `static Float` | Float.`valueOf(String s)` Returns a `Float` object holding the `float` value represented by the argument string `s`.
    `static Double` | Double.`valueOf(String s)` Returns a `Double` object holding the `double` value represented by the argument string `s`.
    `static Byte` | Byte.`valueOf(String s)` Returns a `Byte` object holding the value given by the specified `String`.
    `static Short` | Short.`valueOf(String s, int radix)` Returns a `Short` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.
    `static Long` | Long.`valueOf(String s, int radix)` Returns a `Long` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.
    `static Integer` | Integer.`valueOf(String s, int radix)` Returns an `Integer` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.
    `static Byte` | Byte.`valueOf(String s, int radix)` Returns a `Byte` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.

    Constructors in java.lang that throw NumberFormatException
    Constructor and Description
    `Byte(String s)` Constructs a newly allocated `Byte` object that represents the `byte` value indicated by the `String` parameter.
    `Double(String s)` Constructs a newly allocated `Double` object that represents the floating-point value of type `double` represented by the string.
    `Float(String s)` Constructs a newly allocated `Float` object that represents the floating-point value of type `float` represented by the string.
    `Integer(String s)` Constructs a newly allocated `Integer` object that represents the `int` value indicated by the `String` parameter.
    `Long(String s)` Constructs a newly allocated `Long` object that represents the `long` value indicated by the `String` parameter.
    `Short(String s)` Constructs a newly allocated `Short` object that represents the `short` value indicated by the `String` parameter.

Copyright © 2025 API Design. All Rights Reserved.