String s = "six"; int n = Integer.parseInt(s); System.out.println(n);
6
Compiler error
six
Run-time exception