Collection Interview Questions

2
758

There is no Java Interview which can complete without Java Collection questions. If you are able to crack collection questions, your core Java is considered strong. This section would give you a complete set of Core Java Interview Questions. I would add the answers as well at some later point of time.

[symple_highlight color=”gray”]Question 1: [/symple_highlight] What is the difference between Hashtable and HashMap?

[symple_highlight color=”gray”]Question 2: [/symple_highlight] How can we make HashMap synchronized?

[symple_highlight color=”gray”]Question 3: [/symple_highlight] How to implement Map to get an ordered/sorted Map?

[symple_highlight color=”gray”]Question 4: [/symple_highlight] What is the capacity and size() of an ArrayList?

[symple_highlight color=”gray”]Question 5: [/symple_highlight] What is difference between Vector and ArrayList?

[symple_highlight color=”gray”]Question 6: [/symple_highlight] What is difference between LinkedList and ArrayList?

[symple_highlight color=”gray”]Question 7: [/symple_highlight] What is the size of a Vector initially and how do you increase that? What is the capacity of Vector?

[symple_highlight color=”gray”]Question 8: [/symple_highlight] How to synchronize a List?

[symple_highlight color=”gray”]Question 9: [/symple_highlight] How to convert Arrays to a List ?

[symple_highlight color=”gray”]Question 10: [/symple_highlight] What is the difference TreeSet and SortedSet?

[symple_highlight color=”gray”]Question 11: [/symple_highlight] What are Collections and Arrays class?

[symple_highlight color=”gray”]Question 12: [/symple_highlight] What is Comparable and Comparator interface?

Previous articleException Handling Questions
Next articleCloning in Java
I have spent almost 10 years playing around Java and related technologies. I love to write on different topics and would be very much willing to hear back your feedback/suggestions on them. This site is a medium to share my knowledge with the Java folks and grow further. My other interests include traveling, driving, swimming and dance. But yes, my web site has become my passion over the time :) I live in Scotland and travel to India often, my roots being there.

2 COMMENTS

LEAVE A REPLY