Professional Development

Professional Development

Image

Java Collections

468
plays

14 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    -Contains no duplicate elements.

    -Can contain at most one Null value.

    -Elements are not key-value pairs.

    -Accessing an element can be almost as fast as performing a similar operation on an array.


    Which of these classes provides the specified features?

    LinkedList

    TreeMap

    HashSet

    LinkedHashMap

    HashMap

  • 2. Multiple Choice
    30 seconds
    1 pt

    Which of the following statement about Set is true?

    A HashSet cannot have a null value.

    Set allows duplicate values.

    Set allows null values but only single occurrence.

    Set extends the Java.util.collection interface.

  • 3. Multiple Choice
    30 seconds
    1 pt

    -Entries are organized as key/value pairs.

    -Duplicate entries replace old entries.

    -Entries are sorted using a Comparator or the Comparable interface.

    Which interface of the java.util package offers the specified behavior?

    List

    Map

    Set

    SortedSet

    SortedMap

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?