Oracle
1Z0-851 · Question #6
1Z0-851 Question #6: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #6. The question stem and answer options stay visible for context.
Question
Given: public class Person { private name; public Person(String name) { this.name = name; } public int hashCode() { return 420; } } Which statement is true?
Options
- AThe time to find the value from HashMap with a Person key depends on the size of the map.
- BDeleting a Person key from a HashMap will delete all map entries for all keys of type Person.
- CInserting a second Person object into a HashSet will cause the first Person object to be removed
- DThe time to determine whether a Person object is contained in a HashSet is constant and does
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.