Collection Interview Question
The collection is a very important topic in the interview. interviewer asking so many questions about the collection. when I am giving interviews asking related to the topic. so I am referring to you please start questing about the collection topic.
In this section, I am collecting lots of topmost important questions related to the collection topic.
1. What are Collection related features in Java 8?
4. What are the basic interfaces of the Java Collections Framework?
5. Why Collection doesn’t extend Cloneable and Serializable interfaces?
6. Why Map interface doesn’t extend Collection interface?
7. What is an Iterator?
8. What is the difference between Enumeration and Iterator interface?
9. Why there is no method like Iterator.add() to add elements to the collection?
10. Why Iterator doesn’t have a method to get the next element directly without moving the cursor?
11. Can we use any class as Map key?
12. What are the different Collection views provided by Map interface?
13. What is the difference between HashMap and Hashtable?
14. How to decide between HashMap and TreeMap?
15. What are the similarities and differences between ArrayList and Vector?
16. What is the difference between Array and ArrayList? When will you use Array over ArrayList?
17. What is the difference between ArrayList and LinkedList?
18. Which collection classes provide random access to its elements?
19. What is EnumSet?
20. Which collection classes are thread-safe?
21. What are concurrent Collection Classes?
The collection is a very important topic in the interview. interviewer asking so many questions about the collection. when I am giving interviews asking related to the topic. so I am referring to you please start questing about the collection topic.
In this section, I am collecting lots of topmost important questions related to the collection topic.
- Why collection is important? - > The collection is a framework it is not a concept the real use of collectin is available so that interview asking so many times about the collection in java. we can take any project collection is available. without collection, you can't do java project. that's why the collection is a very important topic in java.
- What is the use of collection? ->The collection is used to store homogenous, Heterogeneous, unique, and duplicates values. It means that you have used this collection in your program to store the object and pass this object in other modules and package classes. so finally we can say that collection is used to pass the object in one class to another class easily.
- Some Very important Question in Collection?
1. What are Collection related features in Java 8?
2. What is the Java Collections Framework? List out some benefits of the Collections framework?
3. What is the benefit of Generics in the Collections Framework?
4. What are the basic interfaces of the Java Collections Framework?
5. Why Collection doesn’t extend Cloneable and Serializable interfaces?
6. Why Map interface doesn’t extend Collection interface?
7. What is an Iterator?
8. What is the difference between Enumeration and Iterator interface?
9. Why there is no method like Iterator.add() to add elements to the collection?
10. Why Iterator doesn’t have a method to get the next element directly without moving the cursor?
11. Can we use any class as Map key?
12. What are the different Collection views provided by Map interface?
13. What is the difference between HashMap and Hashtable?
14. How to decide between HashMap and TreeMap?
15. What are the similarities and differences between ArrayList and Vector?
16. What is the difference between Array and ArrayList? When will you use Array over ArrayList?
17. What is the difference between ArrayList and LinkedList?
18. Which collection classes provide random access to its elements?
19. What is EnumSet?
20. Which collection classes are thread-safe?
21. What are concurrent Collection Classes?
- What is memory digram of ArrayList Object?
Memory Diagram Of collection in java |
- What is the ArrayList and LinkedList?
Comments
Post a Comment