[Solved] What would be the value of variable after executing the following statement


It throws a NumberFormatException. From the Javadoc on Integer.parseInt(String s):

Throws:
NumberFormatException – if the String does not contain a parsable int.

Retrieving the ASCII value of a character is done like this:

char ch="a";
System.out.println((int)ch);

1

solved What would be the value of variable after executing the following statement