Home » JAVA Programming » Arrays » Question
  1. Which of these is an incorrect array declaration?
    1. int arr[] = new int[5];
    2. int arr[] = int [5] new;
    3. int [] arr = new int[5];
    4. int arr[] = new int[5];
    5. None of these
Correct Option: B

Operator new must be succeeded by array type and array size.



Your comments will be displayed only after manual approval.