Hi,
Needed some help in java programming. Thanks
What is the meaning of ‘throws NumberFormatExecption’ here?
public static void inputInteger() throws NumberFormatException{ … }
If i write the following statement, when i compile the program will have error saying exception not thrown or declared. Why the above statement doesn’t have the same error?
public static void inputInteger() throws Exception{ … }