Suppose that you have an ArrayList and that it contains String objects.
Which declaration of the ArrayList requires that objects retrieved using the
get method be cast to Strings before calling a String method?
I. ArrayList a = new ArrayList();
II. ArrayList<Object> a = new ArrayList<Object>;
III. ArrayList<String> a = new ArrayList<String>;
A. I only
B. II only
C. III only
D. I and II only
E. I, II, and III
I really have no idea on this question. I know that all of these are ways to declare an Array List, but I am unfamiliar with the last two since I usually just declare my Array Lists with the first option.