Which two are valid initialization statements?

Which two are valid initialization statements?

Which two are valid initialization statements?

A.
HashMap<Object, Object> m = new SortedMap<Object, Object>();

B.
Map<List, ArrayList> m = new Hashtable<List, ArrayList>();

C.
SortedMap<Object, Object> m = new TreeMap<Object, Object> ();

D.
Collection m = new TreeMap<Object, Object>();

E.
Map<String, String> m = new SortedMap<String, String>();

F.
Hashtable m= new HashMap();



Leave a Reply 1

Your email address will not be published. Required fields are marked *