File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes HashSet and LinkedHashSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "HashSet and LinkedHashSet" Watch "HashSet and LinkedHashSet" New topic

HashSet and LinkedHashSet

sura watthana
Ranch Hand

Joined: Sep 13, 2004
Posts: 77
could somebody please tell me what is a HashSet and LinkedHashSet for?
and are they included in the SCJP 1.4 exam?


marc weber

Joined: Aug 31, 2004
Posts: 11343

For the 1.4 exam, you need to be familiar with Collections (Sets and Lists) and Maps.

See Sun's 1.4 requirements:

See this Tutorial on Collections and Maps:

With respect to HashSet and LinkedHashSet, you basically need to understand that these are Sets (no duplicates); and the LinkedHashSet maintains element insertion order, while the HashSet maintains its own internal ordering. (A TreeSet maintains "natural ordering" of elements.)

See the following with respect to implementation:

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: HashSet and LinkedHashSet
It's not a secret anymore!