Question: QUESTION 6 What exception type does the following program throw? import java.util. public class User public static void main(String[] args) { Scanner obj - new
QUESTION 6 What exception type does the following program throw? import java.util. public class User public static void main(String[] args) { Scanner obj - new Scanner(System.in); int i= obj.nextInt(); intj- obj.nextInto: System.out.println("Sum of numbers input by user"); System.out.println(i+j):1 ClassCastException InputmismatchException NumberFormatException 1OException
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
