What is the length of the bestTimes array?

double[] times = {3.56, 3.9, 2.6, 4.5, 2.4, 5.2};
double[] bestTimes = new double[4];
Arrays.sort(times);
bestTimes = Arrays.copyOfRange(times, 1, 4);

What is the length of the bestTimes array?


a. 4
b. 3
c. 6
d. 5


Answer: a. 4


Learn More :