The three major categories of Java collections are A) lists, sets, and maps B) h
ID: 3827381 • Letter: T
Question
The three major categories of Java collections are A) lists, sets, and maps B) hash lists, hash tables, and sets C) sets, collections, and maps D) tree sets, list sets, and hash maps An entry in a map A) is called a mapping B associates a key with a value C) may not share a key value with any other entry in the map D) All of the above When the next() method of Iterate is called at the end of a collection, it A) throws NoSuchElementException B) returns null C) wraps around to the beginning of the collection and returns the first element D) returns the a copy of the last element returned Comparable A) specifies a single method, compare To B) specifies three methods. Compare To. compare, and equals C) specifies two methods, compare and equals D) specifies two methods, compare and compare To An Array List is so called because A) you can use array subscript notation to work with the ArrayList B) it is implemented as a class that uses an internal array to hold the elements of the list C) you can pass it as a parameter to any method that expects an array D) All of the above If a subclass constructor docs not explicitly call a superclass constructor. A) It must include the code necessary to initialize the superclass fields B) The superclass fields will be set to the default values for their data types C) Java will automatically call the superclass's default constructor immediately after the code in the subclass's constructor executes D) Java will automatically call the superclass's default constructor just before the code in the subclass's constructor executes The automatic conversion of a primitive type to the corresponding wrapper type when being passed as parameter to a generic class is called A) type promotion B) type wrapping C) autoconversion D) autoboxing Which of the following components of an operating system handles the details associated with particular peripheral equipment? A. Device drivers B. File manager C. Memory manager Which class has constants called north and south? a) FlowLayout b) BorderLayout c) BoxLayoutExplanation / Answer
1. The three major categories of Java collections are:
a. lists, sets, and maps
The Java Collection classes include:
HashSet, TreeSet, ArrayList, LinkedList, HashMap, TreeMap classes.
2. An entry in a map
d. All the above.
A mapping is what it is called, and it is a key,value pairs where each key is unique.
3. When the next() method of Iterator ic called at the end of a collection, it
a. throws NoSuchElementException
The iterator will iterate only within the list elements, and if goes beyond, exception arises.
4. Comparable
A. specifies a single method, compareTo.
5. An ArrayList is so called because
B. it is implemented as a class that uses an internal array to hold the elements of the list.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.