Collections and Generics

© examsiri.com
Question : 39 of 53
 
Marks: +1, -0
Given:
ArrayList a = new ArrayList();
containing the values {“1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”}

Which code will return 2?
Go to Question: