Which statement is true?()
A: The time to find the value from HashMap with a Person key depends on the size of the map.
B: Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.
C: Inserting a second Person object into a HashSet will cause the first Person object to be removed as a duplicate.
D: The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on the size of the map.
A: The time to find the value from HashMap with a Person key depends on the size of the map.
B: Deleting a Person key from a HashMap will delete all map entries for all keys of type Person.
C: Inserting a second Person object into a HashSet will cause the first Person object to be removed as a duplicate.
D: The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on the size of the map.
举一反三
- Which statement is true?() A: Compilation fails because the hashCode method is not overridden. B: A HashSet could contain multiple Person objects with the same name. C: All Person objects will have the same hash code because the hashCode method is not overridden. D: If a HashSet contains more than one Person object with name="Fred", then removing another Person, also with name="Fred", will remove them all.
- 下列选项中,与class Person等价的是( )。知识点:继承 A: class Person(Object) B: class Person(object) C: class Person: Object D: class Person: object
- Which of the following is considered more formal and objective? A: first person B: second person C: third person D: all of the above
- The motives for writing vary from person to person and from time to time.( )
- The starting point for determining the key idea in a sentence is to find who or what the sentence is about and what the person or object is doing.