Multiple choice technology programming languages

What will be the output of following code? public class Main { public static void main(String[] args) { int values[] = {1,2,3,4,5,6,7,8}; for(int i=0;i<8; ++i) System.out.println(values[i++]); } }

  1. 1 3 5 7

  2. 2 4 6 8

  3. 2 3 4 5 6 7 8

  4. None of above

Reveal answer Fill a bubble to check yourself
A Correct answer