0 votes
by (120 points)
Do arrays use the length method?

1 Answer

0 votes
by (1.4k points)
java , a Java array of size 0 can be created but it will be of no use because it cannot contain anything. ... length that returns the total size, zero of course, of emptyArray . Every array type has a public and final field length that returns the size of array or the number of elements an array can store.

Related questions

0 votes
1 answer
asked Jun 26, 2021 by pointertoarray (120 points)
0 votes
1 answer
asked Nov 28, 2019 by smallest (260 points)
0 votes
1 answer
asked Nov 28, 2019 by object (400 points)
0 votes
1 answer
asked Nov 28, 2019 by length (460 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked May 26, 2021 by arraysize (120 points)
0 votes
1 answer
asked Nov 28, 2019 by length (460 points)
0 votes
1 answer
asked Nov 28, 2019 by example (1k points)
0 votes
1 answer
...