DATABASE FUNDAMENTALS
BASICS OF BIG DATA
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
MAPS
|
|
LIST
|
|
Stack
|
|
QUeue
|
Detailed explanation-1: -2. Which of these classes is not part of Java’s collection framework? Explanation: Maps is not a part of collection framework.
Detailed explanation-2: -Map interface is a part of Java Collection Framework, but it doesn’t inherit Collection Interface. A Map cannot contain duplicate keys: Each key can map to at most one value. It models the mathematical function abstraction. Each key at most must be associated with one value.
Detailed explanation-3: -Because they are of an incompatible type. List, Set and Queue are a collection of similar kind of objects but just values where a Map is a collection of key and value pairs.
Detailed explanation-4: -Answer: AbstractCollection: This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface.