Online Java Compiler By
JavaTpoint.com
//import statements import java.lang.reflect.Array; import java.util.Arrays; public class ReflectArraygetLengthExample2 { public static void main(String[] args) { int[] valarr = { 890, 980 }; System.out.println("Array length :: " +Array.getLength(valarr)); } }
Output