I'm lil bit confused about this question which i found while doing 1 vasic java quiz
What would be the value of variable c after executing
int c = Integer.parseInt("a");
It throws a
NumberFormatException. From the Javadoc on Integer.parseInt(String s):
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);