What is the output of this question?
class Test
public static void main(Stug[] args)
int arr[] = { 11, 22, 33 };
for (int i = 0; i < arr.length; i++)
System.out.print(arr[i] + " ");
System.out println();
int arr2| = new int[3];
arr2[] = { 11, 22, 33 };
for (int i = 0; i < arr2.length; i++)
System.out.print(arr2[i] + " ");
Answers
Answered by
1
Explanation : It’s not a valid Syntax for array declarations. It will give compile time error : not a statement arr2[] = {11, 22, 33}
Answered by
0
Explanation:
food for who is food to edit
Similar questions