X420: Exceptions - Array Error

In the following code, which line will produce an error?

public class Answer {
    int[] nums = new int[5]; // Line 1
    nums[0] = 1000000; // Line 2
    nums[1] = 557; // Line 3
    nums[2] = 2147483648; // Line 4
    nums[3] = 2111; // Line 5
    nums[4] = 001; // Line 6
}

Your Answer:

Select one answer:


Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.