1.
Which of these packages contain all the collection classes?
Answer: B
Correct answer: java.util
The collection framework - List, Set, Map and their implementations, along with Collections, Arrays and the iterators - lives in java.util. It must be imported explicitly, unlike java.lang, which is imported automatically and holds the core language types such as String, Object and the wrappers.
Please log in or register to report this question.