Question: compiler error is a possibility What does the main() function below print out? static void f(int[] a) { a[0] = 12; public static void main()
compiler error is a possibility
What does the main() function below print out? static void f(int[] a) { a[0] = 12; public static void main() { int[2] a = new int[2](); a[0] = 1; a[1] = 3; f(a); System.out.println(a[0])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
