1. How Hashset works internally in Java or how HashSet works in java?
2. What copy technique internally used by HashSet clone() method ?
3. Why HashSet does not have get(Object o) method ?
4. What is the difference between HashSet and TreeSet ?
5. What is and when to use Collections.emptySet() . What is the advantage of having emptySet in Collections class ?
6. What is the default initial capacity and initial load factor of HashSet object?
7. HashMap is not thread Safe so we have ConcurrentHashMap(thread safe).
Why Java do not have ConcurrentHashSet class just like ConcurrentHashMap , as we know HashSet is also not thread safe and internally use HashMap.
8. What is HashSet ? What are the properties of HashSet object?
9. Why does HashSet implementation in Sun Java use HashMap as its backing?
10. What interfaces are implemented by the HashSet Class ? Which is the superclass of HashSet Class?
[ Source ]
No comments:
Post a Comment