Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Java, Spring Boot, Microservices interview prep
·
Module 2
Java Collections & Problem-Solving
1
Demystifying HashMap: Internals of Hashing, Collisions, and Resizing
Explain the internal implementation of HashMap, including hashing, collision handling, and resizing.
2
Choosing the Right Map: HashMap vs. LinkedHashMap vs. TreeMap vs. ConcurrentHashMap
Compare and contrast HashMap, LinkedHashMap, TreeMap, and ConcurrentHashMap for various use cases.
3
ArrayList vs. LinkedList: Performance Trade-offs
Analyze the performance trade-offs between ArrayList and LinkedList for common operations.
4
HashSet vs. LinkedHashSet vs. TreeSet: Ordering and Performance
Explain the differences between HashSet, LinkedHashSet, and TreeSet in terms of ordering and performance.
5
Two Sum & Variations: HashMap Solutions
Solve the 'Two Sum' problem and its variations using a HashMap for efficient lookups.
6
Top K Frequent Elements: HashMap and PriorityQueue Approach
Solve the 'Top K Frequent Elements' problem using a combination of HashMap and PriorityQueue.
7
Fail-Fast vs. Fail-Safe Iterators
Explain the difference between fail-fast and fail-safe iterators with examples like ConcurrentModificationException.
8
Custom Sorting with Comparable & Comparator
Implement the Comparable and Comparator interfaces to define custom sorting logic for objects.
Previous module
Core Java & JVM Internals
Next module
Functional Java with Streams & Lambdas