Live quiz

java - Part 94

Question 1 of 20 Hints left: 3
Q1

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
  • B
  • C
  • D