Which of the following is the correct syntax to declare an ArrayList in Java? - Study24x7
Social learning Network
24 Mar 2019 12:54 PM study24x7 study24x7

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[];

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles