What does the method print

Report a typo

Here is a method that takes an array:

public static void method(int[] array) {
    array = new int[] { 1, 2, 3 };
}


We invoke this method inside another one:


int[] numbers = { 4, 5, 6 };


method(numbers);


System.out.println(Arrays.toString(numbers));

What does this code print to the standard output?

Select one option from the list
___

Create a free account to access the full topic