Question: Question 7 The following code snippet is given; public class Question { public static void main(String[] args) { int[] a = { 1, 2, 3

Question 7 The following code snippet is given; public class Question { public static void main(String[] args) { int[] a = { 1, 2, 3 }; int[] b = { 4, 5, 6 }; int[] c = { 1 }; double[] d = { 1, 2, 3 }; double[] e = { 2, 3 }; Select all the items below that constructs an array. (No partial grades given ) int[][] arr7 = {a, {1, 2, 3}, b, c}; double[] arr4 = = { a, d }; int[] arr3 = { a, b }; int[][] arr2 = { a, b,c}; double[][] arr5 = {e, d }; double[] arr6 = {1, 2, 0.0}; int[][] arr1 = { a, b }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
