Java Array Length Field
What value is printed by the program?
public class ArrayLength {
public static void main(String[] args) {
int[] data = new int[7];
System.out.println(data.length);
}
}
A
6
B
0
C
8
D
7
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | deltasmpserver | 2 | 2 | 0m 00s | 200 |
| #2 | bommasam000 | 2 | 2 | 1m 31s | 109 |
| #3 | gorkemakyuz201075 | 0 | 1 | 0m 20s | -30 |
Items per page:
10
1 – 3 of 3
APFIVE