Skip to main content

Practice · 4 of 6

Speed: default values

CHALLENGE
Difficulty: intermediate+25 XP

SPEED DRILL — target under 90 seconds. What is printed? ``java int[] a = new int[3]; a[1]++; System.out.println(a[0] + a[1] + a[2]); ` A. 0 B. 1 C. 2 D. ArrayIndexOutOfBoundsException Call answer(...)` exactly once with your option letter and a one-sentence reason.

Back to lesson: Practice: Speed set: 90-second drills