Collection (I) :
Collection Framework: Several classes and interfaces which can be used to represent a group of objects
Following are Legacy characters present in Collection Framework:
Collections.reverse(al); // where al --> arraylist
Please comment below to feedback or ask questions.
- A group of individual objects as a single entity.
- Collection interface defines the most common methods which are applicable for any collection object
- In general collection, interface is considered as Root Interface of collection framework
- There is no concrete class which implements Collection interface directly
Java Collections |
Collection Framework: Several classes and interfaces which can be used to represent a group of objects
Following are Legacy characters present in Collection Framework:
- Enumeration(I)
- Dictionary(AC) [AC -> abstracct Class]
- Vector(C)
- Stack(C)
- Hashtable(C)
- Properties(C)
- It is a utility class present in java.util package
- Collections class defines several utility methods for collection objects like sorting, searching, reversing, etc.,.
Collections.reverse(al); // where al --> arraylist
Please comment below to feedback or ask questions.
No comments:
Post a Comment
Please comment below to feedback or ask questions.