Name
NumberFormatException
Synopsis
This exception signals that an attempt has been made to convert a
String
to a numeric type when the
String
contains a sequence of characters that does
not form a valid number. This class is the same as its J2SE equivalent,
apart from its inability to be serialized.
public class NumberFormatException extends IllegalArgumentException { // Public Constructors public NumberFormatException(); public NumberFormatException( String s); }
Thrown By
Byte.parseByte()
, Integer.{parseInt(), valueOf()}
, Long.parseLong()
, Short.parseShort()
Get J2ME in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.