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);

Please take a look at the following code snippet. What conce…

Please take a look at the following code snippet. What concept is being demonstrated by the relationship between class Car and Engine? class Engine { public void start() { System.out.println(“Engine started.”); } } public class Car { private Engine engine; public Car(Engine engine) { this.engine = engine; } public void drive() { engine.start(); System.out.println(“Car is driving.”); } }