Chapter 10: Problem 3
What is the output? HashSet set \(1=\) new HashSet () ; set1.add(1) ; set \(1 \cdot\) add \((3)\); \(\operatorname{set} 1 \cdot \operatorname{add}(2) ;\) HashSet \(\operatorname{set} 2=\) new HashSet ()\(;\) \(\operatorname{set} 2 \cdot \operatorname{add}(2) ;\) \(\operatorname{set} 2 \cdot \operatorname{add}(3):\) System.out.println (set1. containsAll (set2)) ; a. True b. False c. Compilation error d. Runtime exception
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.