Array copy

Report a typo

What is the last element of the newArr array?

    byte[] arr = {2, 3, 4};
    byte[] newArr = Arrays.copyOf(arr, 2);
Enter a number
___

Create a free account to access the full topic