Question: estion will save this response. Question 2 [CLO-1] Select all possible exceptions that might occur when running this code: Scanner input = new Scanner (new

estion will save this response. Question 2 [CLO-1] Select all possible exceptions that might occur when running this code: Scanner input = new Scanner (new FileReader("data.in")); while (input.hasNext()) { int numi input.nextInt (); int num2 = input.nextInt (); } FileNotFoundException Input MismatchException ArrayindexOutOfBoundsException ArithmeticException as Moving to another question will save this response. [CLO-1] Select all possible exceptions that might occur when running this code: System.out.println("Enter the book Title and the Price : "); String title - input.next(); double price = input.nextDouble(); Book bi mnull; bl.setTitle (title); bi.getPrice (price); System.out.println("Author" + bi.getTitle(); System.out.printin ("Price" + 61.getPrice()); Input MismatchException FileNotFoundException NullPointerException Number FormatException Moving to another question will save this response
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
