i am very very confused about collection and generics,
i did generics very well from herbert shildt,
even now i am not getting collection well.
i have no previous knowledge of collection!!
so directly reading k&b will be dangerous....
even its not that simple like other chapters.
so,how should i do it!!
just the problem is that i havent did collection before. ............!!
dude, your question seems to be very very very generic... until and unless you specify which part of the collection framework you are uncomfortable with...
or atleast present a scenario, I dont think we'll be able to help you....
Joined: Aug 27, 2008
i am completely new to collection thats my problem i dont know even well what is collection.......!!
so kindly tell me just doing k&b directly will i get every thing!!
Well to understand collections, you'll have to understand the meaning and use of the collection interfaces. You'll have to understand the hierarchy. Collections can be divided into two categories
Collection and Map
Collection is for storing a number of values while map is for storing key value pairs.
Collection can be further divided into List and Set. List is used to have an ordered list of elements. While Set is used to have a list of unique elements which may be unordered. Maps always have unique keys while the values can be repeat.
.........this is what is there in complete reference 6.
how many of these are irrelevent to topic and what i still miss here!!
The things I have marked bold are not in the objectives of SCJP. The thing marked in red doesn't exists . And I think you'll miss a lot of things. I can't see any of the collection implementation classes i.e. LinkedList, TreeMap, TreeHashSet ..............etc. There is also no mention of Collections class which has utility method related to collections. There might be even more which I missed...