| The API document link for library "HashSet" | java.util.HashSet |
| clear() | "public void clear()
Removes all of the elements from this set. The set will be empty after this call returns.
Specified by:
clear in interface Collection |
| clone() | "public Object clone() Returns a shallow copy of this HashSet instance: the elements themselves are not cloned. Overrides: clone in class Object Returns: a shallow copy of this set See Also: Cloneable" |
* Required
| Question | Machine's Answer | Do you agree with machine's answer | Explain (At least 10 words) | How confident are you |
|---|---|---|---|---|
| 1. In HashSet library, clear() is always followed by clone() | False |
Agree Disagree * |
* | * |
| 2. In HashSet library, clear() is always immediately followed by clone() | False |
Agree Disagree * |
* | * |
| 3. In HashSet library, clear() is never followed by clone() | False |
Agree Disagree * |
* | * |
| 4. In HashSet library, clear() is never immediately followed by clone() | False |
Agree Disagree * |
* | * |
| 5. In HashSet library, clear() always precedes clone() | False |
Agree Disagree * |
* | * |
| 6. In HashSet library, clear() always immediately precedes clone() | False |
Agree Disagree * |
* | * |