This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Bettwen Hastable and HashMap.HashMap is synchronize / hashtable. Can anyone tell correct answer. If HashMap is synchronized , then how can we synchronized it. Same for Vector, Arraylist and LinkeList, among these which one is synchronized. How can we synchronized them.
I think Hashtable is synchronized. And these are standard java API and if one of them is synchronized, that simply means that their implementation present in API provides a synchornized access! But you can apply your own synchronization methods/blocks while using them in your code!
<i>If there were no Exceptions (not Errors!), Life would have kinda sucked!!</i>
Hashtable is synchronized not Hashtable Vector is synchronized not ArrayList you do not need to worry about synchronization while using these collection...synchronized means methods in that classs are synchronized
Research is what I'm doing when I dont know what I'm doing