| Author |
which Collection Class is synchronied?
|
guo mark
Ranch Hand
Joined: Oct 20, 2001
Posts: 43
|
|
|
Ara all Collection Class unsynchronied? or there are some synchronied and some unsynchronied?
|
meet once ,love every while
|
 |
Corey McGlone
Ranch Hand
Joined: Dec 20, 2001
Posts: 3271
|
|
Some are and some aren't. For example, ArrayList isn't synchronized while Vector is. Your best resource would be to check the API for whichever classes you're interested in. Corey
|
SCJP Tipline, etc.
|
 |
guo mark
Ranch Hand
Joined: Oct 20, 2001
Posts: 43
|
|
|
3x
|
 |
Rob Ross
Bartender
Joined: Jan 07, 2002
Posts: 2205
|
|
|
Well, specifically Vector and HashTable are synchronized. All the other collection classes are unsynchronized. However, you can obtain a synchronized wrapper for the collection classes via the Collections class; but the default implementations are all unsynchronized (except for Vector and HashTable)
|
Rob
SCJP 1.4
|
 |
 |
|
|
subject: which Collection Class is synchronied?
|
|
|