Which of these is an incorrect array declaration?
A. int arr[] = new int[5]
B. int [] arr = new int[5]
C. int arr[] arr = new int[5]
D. int arr[] = int [5] new
Answer:D
Which of these is an incorrect array declaration?
A. int arr[] = new int[5] B. int [] arr = new int[5] C. int arr[] arr = new int[5] D. int arr[] = int [5] new
Explanation:Operator new must be succeeded by array type and array size.