"collection framework" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "collection framework" answered properly. Developers are finding an appropriate answer about collection framework related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like collection framework. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on collection framework.
collection framework
LIST: Can store duplicate values,
Keeps the insertion order.
It allows multiple null values,
Also we can read a certain value by index.
- ArrayList not syncronized, array based class
- LinkedList not synchronized, doubly linked
- Vector is synchronized, thread safe
SET: Can only store unique values,
And does not maintain order
- HashSet can have null, order is not guaranteed
- LinkedHashSet can have null and keeps the order
- TreeSet sorts the order and don't accept null
QUQUE : Accepts duplicates,
Doesn't have index num,
First in first our order.
MAP : is a (key-value format)
and keys are always unique,
and value can be duplicated.
- HashTable don't have null key, sychronized(thread-safe)
- LinkedHashMap can have null key, keeps order
- HasHMap can have null key, order is not guaranteed
- TreeMap doesn't have null key and keys are sorted
what type of collections used
Depending on the data that I am working with, I use
Arrays, Lists, Sets, Maps.
All those coders who are working on the Whatever based application and are stuck on collection framework can get a collection of related answers to their query. Programmers need to enter their query on collection framework related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about collection framework for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of collection framework while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "collection framework". Visit this developer's friendly online web community, CodeProZone, and get your queries like collection framework resolved professionally and stay updated to the latest Whatever updates.