What will be the output of the following code?
int[] arr = {1, 2, 3, 4, 5}; System.out.println(arr[2]);
1
2
3
4
This question is part of this quiz :