READ Free Dumps For Oracle- 1z0-851
Question ID 3869 | Given: |
Option A | A. Compilation fails because the hashCode method is not overridden. |
Option B | B. A HashSet could contain multiple Person objects with the same name. |
Option C | C. All Person objects will have the same hash code because the hashCode method is not overridden. |
Option D | D. If a HashSet contains more than one Person object with name="Fred", then removing another Person, also with name="Fred", will remove |
Correct Answer | B |
Question ID 3870 | Given: |
Option A | A. public void addStrings(List list) { |
Option B | B. public void addStrings(List<String> list) { |
Option C | C. public void addStrings(List<? super String> list) { |
Option D | D. public void addStrings(List<? extends String> list) { |
Correct Answer | B,C |