Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of these statements compile? (Choose all that apply.)
HashSet<Number> hs = new HashSet<Integer>();
List<Object> values = new HashSet<Object>();
HashSet<? super ClassCastException> set = new HashSet<Exception>();
List<Object> objects = new ArrayList<? extends Object>();
Map<String, ? extends Number> hm = new HashMap<String, Integer>();
List<String> list = new Vector<String>();
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!