Live quiz

java - Part 10

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following Java code? class array_output { public static void main(String args[]) { int array_variable [] = new int[10]; for (int i = 0; i < 10; ++i) { array_variable[i] = i; System.out.print(array_variable[i] + " "); i++; } } }

  • A
  • B
  • C
  • D