Beginner Java
Q37 / 100

Which of these correctly creates an array of 5 integers?

Correct! Well done.

Incorrect.

The correct answer is B) int[] arr = new int[5]

B

Correct Answer

int[] arr = new int[5]

Explanation

In Java, arrays are declared with [] and allocated with new type[size].

Progress
37/100