wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes WeakHashMap 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 "WeakHashMap" Watch "WeakHashMap" New topic
Author

WeakHashMap

jioy uilo
Greenhorn

Joined: Mar 29, 2003
Posts: 25
Hi
do we need to know anything abt above and its Weak related collection object?
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
The exam requires you to know which collections class is most appropriate for a particular application. If you take a quick look at the javadoc for the WeakHashMap then you will have all of the information that you might need for the exam.
My mock exam has a question or two on the WeakHashMap, but I don't know how much emphasis the real exam might place on that class. I know that the real exam that I had didn't have any questions on the WeakHashMap, but I can not guarantee that your exam won't have any.
The two new classes that were added to the 1.4 version of Java and the exam, LinkedHashMap and LinkedHashSet have a higher probability of showing up on your exam.
The JavaRanch Newsletter has had some tutorials on the collections framework. Just search on Collections on the newsletter page.


Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
According to Bert Bates, who knows about this sort of thing:

Interfaces: Collection, Set, Map, List, SortedSet, SortedMap

Understand when to use the following:
HashMap, Hashtable, TreeMap, LinkedHashMap
HashSet, LinkedHashSet, TreeSet
ArrayList, Vector, LinkedList

The key to these is what they're good for! What special thing they can do - you don't need to know their methods.

You need to know about iterators!

When I sat the exam, I was asked about all the above, nothing on WeakHashMap.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
Thank you Roger.
I hope that information shows up in the next version of the exam objectives.
Robbie kyodo
Ranch Hand

Joined: May 05, 2003
Posts: 97
Hi

Just to verify agn :
Those classes that stores key/value pairs are :
HashMap
TreeMap
LinkedHashMap
any others that I missed out ?


SCJP 2 1.4
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
You forgot Hashtable. Hashtable can be used to store Key/Value pair but is not recommended.
Robbie kyodo
Ranch Hand

Joined: May 05, 2003
Posts: 97
thanks,
Gavin Bong
Ranch Hand

Joined: Apr 25, 2003
Posts: 56
Anupam,
Hashtable is not recommended to HashMap because its methods are synchronized. Right ?
Gavin
 
jQuery in Action, 2nd edition
 
subject: WeakHashMap