Skip to main content

Practice · 7 of 8

MCQ: What is printed?

CHALLENGE
Difficulty: advanced+25 XP

What is printed? ``java int[] arr1 = {1, 2, 3}; int[] b = arr1; b[0] = 9; arr1 = new int[]{4, 5, 6}; System.out.print(arr1[0] + "," + b[0]); ` A. 9,9 B. 4,9 C. 9,4 D. 4,4` Print your answer as: the option letter, then your explanation of why it is correct and why each other option is wrong. First line must start with the letter.

Back to lesson: Practice: MCQ set 1: read the misconception