J
Jun
I noticed that not all the public methods are synchronized.
Some of them are even "setters" like
public boolean remove(Object o) {
return removeElement(o);
}
public void add(int index, Object element) {
insertElementAt(element, index);
}
while
public synchronized Object remove(int index) {
...
}
is syn.
Why?
thanks
Some of them are even "setters" like
public boolean remove(Object o) {
return removeElement(o);
}
public void add(int index, Object element) {
insertElementAt(element, index);
}
while
public synchronized Object remove(int index) {
...
}
is syn.
Why?
thanks