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

Operator new must be succeeded by array type and array size. The order is important and determines the type of variable.



Your comments will be displayed only after manual approval.