Illegal numberA number contains one or more characters that are not valid for that typeof number. For example,_Z = 0ABCGh Here, G is not a valid letter in a hexadecimal number.