1

How do you instantiate an array in Java?

Correct Answer: int arr[] = new int[3];

Make the most of this question

This page focuses on one Data Structure (DS) question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Data Structure (DS) MCQ: How do you instantiate an array in Java? | Extra Education