Check the code

Report a typo

Examine the following code snippet:

public static void checkTheCode(String input) {
    int number = Integer.parseInt(input);
    int divResult = 22 / number;
    int multResult = 0 * number;
    System.out.println(multResult);
}

Check all the lines that may throw an exception.

Select one or more options from the list
___

Create a free account to access the full topic