Number of methods

Report a typo

How many methods will be mentioned in the stack trace message if you run this code?

public class ExceptionDemo {
    public static void main(String[] args) {
        int[] demoArray  = {0, 1, 2, 3, 4, 5};

        demo(demoArray);
    }

    public static void demo(int[] input) {
        System.out.println(input[10]);
    }
}
Enter a number
___

Create a free account to access the full topic