✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is the output of the following code snippet?
int[ ] numbers = {3, 5, 2, 1, 4};
Arrays.sort(numbers);
System.out.println(numbers[numbers.length - 1]);