What is the output of the following code ? class A { pu…
What is the output of the following code ? class A { public static int changeArr(int arr) { arr = arr + 1; return arr + 2; } public static void main(String args[]) { int[] arr = {0, 1, 2}; changeArr(arr[BLANK-1]); System.out.println(arr[BLANK-2]); }}
Read Details