a) ArrayList al = new ArrayList();
b) ArrayList al = new ArrayList[];
c) ArrayList al() = new ArrayList();
d) ArrayList al[] = new ArrayList[];
Which of the following is the correct syntax to declare an ArrayList in Java?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following is the correct syntax to declare an ArrayList in Java?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!