synchronized methods, vector and hashtable
I understand that synchronized method provide some kind of a luck on the method so no other thread can use it.when saying the hashtable or vectors should be avoided because they are synchronized is it because of the time it takes to populate them?why use ArrayList over
In general, synchronized processes have a greater overhead and are therefore slower. So, if you don't need the feature, don't use it and gain some speed.