Output Array2801 - Java Quiz Question


What will be the output of the following program?

public class ArrayOutput
{
    public static void main(String s[])
    {
        int student_marks[] = new int[39];
        float[] my_array = new float[student_marks.length];
        System.out.println("My Array length is: " + my_array.length);
        System.out.println("Student Marks Array length is: " + student_marks.length);
    }
}


A
My Array length is: 39
Student Marks Array length is: 0
B
My Array length is: 39
Student Marks Array length is: 39
C
Compilation Error
D
Runtime Error