Respond to the following, and if appropriate, include personal experience as par
ID: 3862984 • Letter: R
Question
Respond to the following, and if appropriate, include personal experience as part of your answers.
The Java Collections Framework supports three major types of collections: set, list, and queues. Discuss the differences, and indicate how you would use each of the collections.
Step 1 Post the following to the discussion board.
Respond to the following, and if appropriate, include personal experience as part of your answers.
The Java Collections Framework supports three major types of collections: set, list, and queues. Discuss the differences, and indicate how you would use each of the collections.
Explanation / Answer
A collection framework in java is a unfied style to appear andoperating collections.it offers a good outlned set of interfaces and classes to preserve and operating the set of data as a one unit .i.e collection.often a suitable API or several abstract data types known n computer science data structure.The major aim of this java collection frame is to generate API which was less in size,much uniquely in conceptual weghts.it reduces the programming eneavors,reusability of foster software.
list:A list might or might posses the duplicates ,but assures the order.it permits the positonal acess.example implementations involve linked list also the array list.
Set: duplicates are not present and order is also assured by this set.since it is unable to offer the positional acess .implementations involvew in the set are hashset and Treeset.
Queue: example to linear data structure. it utlizes the First iin first out manner.it can retrieve the elements in discrete order.it offers the services in transport,operational research i.e several entities like data ,persons are preserved and to operate afterwards.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.