Exam 16: Collections and Iterators
Exam 1: Getting Started46 Questions
Exam 2: Console Input and Output29 Questions
Exam 3: Flow of Control43 Questions
Exam 4: Defining Classes I44 Questions
Exam 5: Defining Classes Ii46 Questions
Exam 6: Arrays47 Questions
Exam 7: Inheritance43 Questions
Exam 8: Console Input and Output43 Questions
Exam 9: Exception Handling45 Questions
Exam 10: File IO46 Questions
Exam 12: Uml and Patterns22 Questions
Exam 13: Interfaces and Inner Classes32 Questions
Exam 14: Generics and the Arraylist Class31 Questions
Exam 15: Linked Data Structures43 Questions
Exam 16: Collections and Iterators44 Questions
Exam 17: Swing I37 Questions
Exam 18: Swing II31 Questions
Exam 19: Java Never Ends18 Questions
Exam 11: Recursion43 Questions
Exam 20: Applets25 Questions
Select questions type
The hasNext()method of the Iterator interface has a return value of:
(Multiple Choice)
4.8/5
(43)
When an interface lists a method as "optional," you do not need to implement it when defining a class that implements the interface.
(True/False)
4.9/5
(29)
A vector can potentially encounter an ArrayIndexOutOfBoundsException.
(True/False)
4.9/5
(31)
Memory management methods of the vector class include all of the following except:
(Multiple Choice)
4.7/5
(38)
The V parameter in a HashMap<K,V> may be any object,but the K parameter must be a String.
(True/False)
4.9/5
(29)
The number of entries that may be added to a HashMap<K,V> object is limited to what is specified as the initial capacity in the constructor for the HashMap<K,V> object.
(True/False)
4.9/5
(44)
Write a Java statement to resize the resulting vector in number 2 above to 100.
(Short Answer)
4.8/5
(38)
A ___________ is used to specify a wide range of parameters.
(Multiple Choice)
4.8/5
(34)
To change an existing element of a vector you must use the __________ method.
(Multiple Choice)
4.8/5
(36)
An Iterator is an object that allows your code to produce the elements in a vector or other container one after the other,exactly once.
(True/False)
5.0/5
(39)
The method contains(Object o)of the ArrayList class returns a value of type:
(Multiple Choice)
4.8/5
(39)
What is the difference between a vector's size and a vector's capacity?
(Essay)
4.7/5
(35)
Elements of a vector must be of a primitive type,such as int,double,or char.
(True/False)
4.8/5
(34)
The method ___________ can be used to determine the number of elements in an ArrayList.
(Multiple Choice)
5.0/5
(36)
If you do not need efficient random access but need to efficiently move sequentially through the list,then use the _____________ class.
(Multiple Choice)
4.8/5
(40)
The Collection class or interface that allows only unique elements is the ___________ class or interface.
(Multiple Choice)
5.0/5
(38)
Showing 21 - 40 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)