Java Array Length Field
What is the output of the code above?
public class ArrayLengthTest {
public static void main(String[] args) {
int[] values = {2, 4, 6, 8, 10};
System.out.println(values.length);
}
}
A
4
B
Compilation Error
C
5
D
0
APFIVE