Zafrul
TechStack
Home
Blog
Interview Q&A
Projects
AI Assistant
Resume Analyzer
Job Match
Contact
Java
Collection
Interview questions on Collection.
All Levels
Beginner
Intermediate
Advanced
Search
Showing
10
of
39
questions
1. What are the main interfaces/classes in the Collection framework?
+
2. Internal working of HashMap?
+
3. On what basis does HashMap decide where to store an element?
+
4. Is hashing based on key, value, or both?
+
5. If we insert the same key in HashMap, what happens to the previous value?
+
6. How to make an ArrayList read-only?
+
7. What’s the difference between Collection and Stream?
+
8. How to declare a list of integers in Java?
+
9. Can I keep an Employee object or any custom object as HashMap key?
+
10. Why do we keep hashmap keys as immutable?
+
Previous
Page 1 of 4
Next