Which of the following is the correct way to declare an integer array in Java?, int[] arr = new int[5];, int arr[] = new int[5];, int arr[5];, Both a and b.

Leaderboard

Visual style

Options

Switch template

)
Continue editing: ?