Tuesday, 12 January 2016

Super 30 Interview questions from Collection Framework ??

Question 1. What is Collection framework in java?

Question 2. Which interfaces and classes are most frequently used in Collection framework in java (Draw the hierarchy)?

Question 3. What are sub interfaces of Collection interface in java? Is Map interface also a sub interface of Collection interface in java?

Question 4. What are differences between ArrayList and LinkedList in java?

Question 5. What are differences between ArrayList and Vector in java?

Question 6. What are differences between List and Set interface in java?

Question 7. What are differences among Iterator and ListIterator and Enumeration in java?

Question 8. What are differences between Collection and Collections in java?

Question 9. How do we override equals and hashcode method in java, write a code to use Employee as key in HashMap in java? (Important)

Question 10. What classes should i prefer to use a key in HashMap in java? (Important)

Question 11. What are differences between HashMap and Hashtable in java?

Question 12. when to use HashSet vs LinkedHashSet vs TreeSet in java?

Question 13. What are differences between HashMap and ConcurrentHashMap in java?

Question 14. When to use HashMap vs Hashtable vs LinkedHashMap vs TreeMap in java?

Question 15. What is WeakHashMap in java?

Question 16. What is EnumSet & EnumMap in java?

Question 17. How to implement own/custom HashMap in java? Or How HashMap works in java?

Question 18. How to implement own LinkedHashMap in java? Or LinkedHashMap works in java?

Question 19. How to implement own ArrayList in java?Or How ArrayList works in java ?

Question 20. How to implement own HashSet in java? Or How HashSet works in java ?

Question 21. How to implement own LinkedHashSet in java Or How LinkedHashSet works in java ?

Question 22. What do you mean by fail-fast and fast-safe? What is ConcurrentModificationException?

Question 23. What are different ways of iterating over elements in List?

Question 24. What are different ways of iterating over elements in Set?

Question 25. What are different ways of iterating over keys, values and entry in Map?

Question 26. What is difference between Comparable and Comparator? How can you sort List?

Question 27. What are differences between ArrayList vs CopyOnWriteArrayList?

Question 28. What are differences between HashSet vs CopyOnWriteArraySet?

Question 29. What are differences between TreeSet vs ConcurrentSkipListSet?

Question 30. Can we use null element/key in TreeSet? Give reason?

***** Please follow the below given diagram for proper difference *****










No comments:

Post a Comment

JSP interview questions and answers

Q1. What is JSP and why do we need it? JSP stands for JavaServer Pages. JSP is java server side technology to create dynamic web pages. J...