Which two statements will cause a compiler error in Java?

1. int[] arr1 = new int(5);
2. int arr2[] = new int[];
3. int[] arr3 = new int[10];
4. int arr4[] = new int[5];
5. int arr5[] = {1, 2, 3, 4};
Choose the correct answer from the options given below:

1
1 and 2
2
3 and 5
3
2 and 4
4
1 and 3
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation