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

Leaderboard

Visual style

Options

Switch template

Continue editing: ?