Length of an array

 public class length {

    public static void main(String[] args) {
        int[] marks = { 100, 78, 45, 33, 77 };
        System.out.println(marks.length);
    }
}

Comments