0% found this document useful (0 votes)
9 views

Unit 6 - Java Collections Framework and Package

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Unit 6 - Java Collections Framework and Package

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Unit 6 - Java Collections Framework and Package

Q1. What is Collection in java?


Q2. Explain Arrays class in java? Why it is required?
Q3. Draw the Collection class Hierarchy?
Q4. What is set and list? Differentiate between them.
Q5. What is the difference between array and collection?
Q6. Explain ArrayList , LinkedList, Vector, Stack?
Q7. Explain HashSet, LinkedHashset,TreeSet in java collection framework?
Q8. What do you mean by framework?
Q9. What do you mean by map, HashMap, LinkedHashMap, TreeMap?
Q10. What are Comparable interface and Comparator interfaces?
Q11. Explain the abstract methods of Comparable and Comparator interfaces.
Q12. Differentiate between ArrayList, HashSet and HashMap?
Q13. What is ListIterator?
Q14. What is Iterator?
Q15. How we can iterate through all the Collection Classes, expalin with examples? (using for, using for-
each and using iterator)
Q16. What is Package?
Q17 How to create Package in java?
Q18. Why we use Packages in java?
Q19. How to import a package?
Q20. What is the difference between peek() and pop() methods
Q21. How to sort an array using Arrays class?

You might also like