Vidyalelo
Data Structure · Q113

Introduction to Data Structures

Programming · Data Structure · question 113

Q113

How do you instantiate an array in Java?

A.
int arr[] = new int(3);
B.
int arr[];
C.
int arr[] = new int[3];
Answer
D.
int arr() = new int(3);

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board