What is length in Java Arrays?

Java 8Object Oriented ProgrammingProgramming

Length is a filed in java, it gives the total number of the elements in a Java array. The length of an array is defined after the array was created.

Integer[] myArray = {23, 93, 56, 92, 39};
System.out.println(myArray.length);
raja
Published on 09-Jan-2018 06:23:14
Advertisements