1.

What is the output of this program?

public class Result
{
public static void main(String args[])
{
int array1[] = new int[8];
int array2[] = {5, 8, 7, 6, 9};
System.out.println(array1.length + " " + array2.length);
}
}

A. 9 5
B. 5 9
C. 8 5
D. 5 8
E. None of these
Answer» D. 5 8


Discussion

No Comment Found

Related MCQs