Regex check

Report a typo

Which inputs will throw an exception in the code below?

class NumberFormatExceptionDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        System.out.println("Code Executed Successfully");
    }
}
Select one or more options from the list

Create a free account to access the full topic