What will the following code display? String input = “99#7”;…

What will the following code display? String input = “99#7”; int number; try { number = Integer.parseInt(input); //Converts string to integer } catch(NumberFormatException ex) { number = 0; } catch(RuntimeException ex) { number = 1; } catch(Exception ex) { number = -1; } System.out.println(number);

Given the following code: public class ClassA { public Class…

Given the following code: public class ClassA { public ClassA() { } public void method1(int a) { } } public class ClassB extends ClassA { public ClassB() { } public void method1() { } } public class ClassC extends ClassB { public ClassC() { } public void method1() { } } Which method1 will be executed when the following statements are executed? ClassC item1 = new ClassA(); item1.method1();