________ collection classes store objects, whereas ________ collection classes store primitive data types.
- ArrayList / LinkedList
- HashMap / HashSet
- Vector / Hashtable
- Wrapper / Primitive
Wrapper collection classes (such as ArrayList) store objects, while Primitive collection classes (such as ArrayList) store primitive data types directly. The wrapper classes allow primitive data types to be used in collections that require objects.
Loading...
Related Quiz
- The ______ interface is implemented by classes that want to handle events of a specific type, with event type and event source defined as generic parameters.
- The expression a != b returns true if a is ______ b.
- In Java 8, the Stream API introduces the concept of stream processing, which is influenced by the ________ paradigm.
- What will be the output of the following code snippet: System.out.println("2" + 3);?
- In a large-scale application that reads data from external files, how would you design an exception-handling mechanism to not only log the issues for the developers but also to provide friendly feedback to the end-users, ensuring that the system does not crash upon encountering an exception?