public class Test { public static void main(String[] args) { try { int x = Integer.parseInt("three"); } System.out.println("OK"); catch (NumberFormatException nfe) { System.out.println("Not OK"); } } }
Select the most appropriate answer.