Examveda

Which of the following is the correct syntax to declare an ArrayList in Java?

A. ArrayList al = new ArrayList();

B. ArrayList al = new ArrayList[];

C. ArrayList al() = new ArrayList();

D. ArrayList al[] = new ArrayList[];

Answer: Option A


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures