Vidyalelo
Java Programming · Q111

Miscellaneous Java

Programming · Java Programming · question 111

Q111

What will be the output of the following Java program? class Output public static void main(String args[]) int a1[] = new int[10]; int a2[] = 1, 2, 3, 4, 5; System.out.println(a1.length + " " + a2.length);

A.
10 5
Answer
B.
5 10
C.
0 10
D.
0 5

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board