- Why do we need collections in Java?
- What are the important interfaces in the collection hierarchy?
- What are the important methods that are declared in the collection interface?
- Can you explain briefly about the List interface?
- Explain about ArrayList with an example?
- Can an ArrayList have duplicate elements?
- How do you iterate around an ArrayList using iterator?
- How do you sort an ArrayList?
- How do you sort elements in an ArrayList using comparable interface?
- How do you sort elements in an ArrayList using comparator interface?
- What is vector class? How is it different from an ArrayList?
- What is linkedList? What interfaces does it implement? How is it different from an ArrayList?
- Can you briefly explain about the Set interface?
- What are the important interfaces related to the Set interface?
- What is the difference between Set and sortedSet interfaces?
- Can you give examples of classes that implement the Set interface?
- What is a HashSet?
- What is a linkedHashSet? How is different from a HashSet?
- What is a TreeSet? How is different from a HashSet?
- Can you give examples of implementations of navigableSet?
- Explain briefly about Queue interface?
- What are the important interfaces related to the Queue interface?
- Explain about the Deque interface?
- Explain the BlockingQueue interface?
- What is a priorityQueue?
- Can you give example implementations of the BlockingQueue interface?
- Can you briefly explain about the Map interface?
- What is difference between Map and sortedMap?
- What is a HashMap?
- What are the different methods in a Hash Map?
- What is a TreeMap? How is different from a HashMap?
- Can you give an example of implementation of navigableMap interface?
- What are the static methods present in the collections class?
- What is the difference between synchronized and concurrent collections in Java?
- Explain about the new concurrent collections in Java?
- Explain about copyonwrite concurrent collections approach?
- What is compareandswap approach?
- What is a lock? How is it different from using synchronized approach?
- What is initial capacity of a Java collection?
- What is load factor?
- When does a Java collection throw UnsupportedOperationException?
- What is difference between fail-safe and fail-fast iterators?
- What are atomic operations in Java?
- What is BlockingQueue in Java?