Question: What does this code output? A. [1, 9, 10] B. [1, 10, 9] C. [9, 1, 10] D. [9, 10, 1] E. [10, 1, 9]

What does this code output? 

String[] nums= new String[] { "1", "9", "10" }; Arrays.sort (nums); System.out.println

A. [1, 9, 10]

B. [1, 10, 9]

C. [9, 1, 10]

D. [9, 10, 1]

E. [10, 1, 9]

F. [10, 9, 1]

String[] nums= new String[] { "1", "9", "10" }; Arrays.sort (nums); System.out.println (Arrays.toString (nums));

Step by Step Solution

3.31 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The code snippet you provided is written in Java The code initialize... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!