This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Hi!!! Question about Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Hi!!! Question about Collection" Watch "Hi!!! Question about Collection" New topic

Hi!!! Question about Collection

Lei Zheng

Joined: May 28, 2003
Posts: 3
I have a question about Collection:
which classes allow unsynchronized read operations by multiple threads in the Collection Hierarchy ?
Can some similar questions appear in the real exam?
[ May 28, 2003: Message edited by: Lei Zheng ]
G Nadeem
Ranch Hand

Joined: Apr 25, 2003
Posts: 48
in my knowledge all classes except Vector and Hashtable, allow non-synchronized access. Vector and Hashtable are thread-safe.
just to mention, we can get synchronized 'version' of new Collection family too. for instance,
Set s = Collection.synchronizedSet(new TreeSet());
Lei Zheng

Joined: May 28, 2003
Posts: 3
G Nadeem
Thank you very much!!!
wood burning stoves
subject: Hi!!! Question about Collection
Similar Threads
How to store two similar values
two questions about wild card in Generics
Garbage collection
servlet unloading
Problem deleting value-type object from Collection in Hibernate