1.

Which of these is an incorrect array declaration?(a) int arr[] = new int[5](b) int [] arr = new int[5](c) int arr[] = new int[5](d) int arr[] = int [5] new

Answer» Correct choice is (d) int arr[] = int [5] new

Easy explanation: Operator new must be succeeded by array type and array size.


Discussion

No Comment Found

Related InterviewSolutions