answersLogoWhite

0

That may happen when Java tries to parse a String, to convert it into a number. In this case, if the String doesn't contain a valid number - or perhaps if it contains additional symbols not appropriate for a number - you may get this error.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Write the 3 user defined exception in java?

1. Arithmetic Exception 2. Input Output Exception 3. Number Format Exception


What is file format exception in java?

A very complicated thing...which nobody has answered yet.


Can userdefined exception have two methods in it?

Yes a user defined exception can have any number of methods in it. A user defined exception is nothing but a Java class created for a specific purpose. Just like ordinary Java classes, you can have any number of methods in it...


What is user exceptions?

user defined exception is created by user such as arthmetic,number format exception ...


How an exception subclass is created in java explain?

We can create a exception sub class by extending Exception class available in java


What is the purpose of NoMatchException handling method in java?

java exception


Which exception is thrown by the add method of Collection interface in java?

exception


What is difference between exception handling in C and Java?

Easy: there is no exception-handling in C.


Resolve this error 4 java --Exception in thread main java.lang.UnsupportedClassVersionError milan Unsupported major.minor version 49.0?

The class/jar was compiled with a later major version of java than the version of java you are using to run the code with. So for instance the class was compiled with java 1.5 and you are running the class with java 1.4, which doesn't understand the format of 1.5 class files. check "java -version" from the command prompt.


How do you throw exception in java?

we do it using the throw keyword.


Which is the base class of exception handling in java?

Thorwable


When should we use exception handling in java?

Exception handling should be used in Java in all cases where you as a programmer suspect that your code might throw some exceptions or create errors that might look ugly when a user is using the application. In such cases you use exception handling to catch and handle the exception and exit gracefully. You use the try - catch block in Java for exception handling.