Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java How To Program
Quiz 16: Generic Collections
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
Which of the following performs an unboxing conversion? Assume x refers to an Integer object.
Question 2
Multiple Choice
The collections framework algorithms are __________,i.e.,each of these algorithms can operate on objects that implement specified interfaces without concern for the underlying implementations.
Question 3
Multiple Choice
Collections method sort that accepts a List as an argument.It sorts the List elements,which must implement the __________ interface.
Question 4
Multiple Choice
Algorithm __________ randomly orders a List's elements.
Question 5
Multiple Choice
Which statement is false?
Question 6
Multiple Choice
LinkedList method listIterator returns a(n) __________.
Question 7
Multiple Choice
Iterator method __________ determines whether the Collection contains more elements.
Question 8
Multiple Choice
Which statement is false?
Question 9
Multiple Choice
Collections method ___________ returns a Comparator object that orders the collection's elements in reverse order.
Question 10
Multiple Choice
Which of the following does not implement interface List?
Question 11
Multiple Choice
Comparator method compare should return ________ if the first argument is greater than the second argument.
Question 12
Multiple Choice
Which of these is not an example of a "real-life" collection?
Question 13
Multiple Choice
Java supports type inferencing with the <> notation in statements that declare and create generic type variables and objects.For example,the following line: List<String> list = new ArrayList<String>() ; Can be written as: