由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Re: hashtable
相关主题
ObjectOutputStream.writeObject(Hashtable) ?interview question
如何遍历hashtable里边的每一项?传递一个object reference,如何防止更改object?
问个gwt client code调用远程object的问题哪位大牛帮帮忙, 初学JAVA, 问题一道
关于java的疑惑 (转载)让大家了解工业界Java/J2EE面试题的难度
请教一个多线程lock机制的问题问HashSet的问题?
How to check if an element is in an array?学以致用,但多此一举?
Simple question: delete element from collection on condition?问个数组问题
问一道关于Vector的题如何确保每次读入的字符串都是unique的
相关话题的讨论汇总
话题: hashtable话题: hashmap话题: hashset
进入Java版参与讨论
1 (共1页)
W******c
发帖数: 23
1
I was asked such question in a job interview.
My points:
Hashtable is sychronized.
Hashtable comes with JDK1.0.
It is rewrited to fit JDK1.2 collection framework by
implementing Map interface.
Acutally it is not part of Java 2 collection framework.
It inherits java.util.Dirtionary.
HashMap and HashSet are not synchronized.
You can use synchronized wrapper for sychronized access.
There is no big difference for HashMap and HashSet in terms
of usage
though they implement different interfaces.
All a
1 (共1页)
进入Java版参与讨论
相关主题
如何确保每次读入的字符串都是unique的请教一个多线程lock机制的问题
问个set和literal String的问题How to check if an element is in an array?
Leetcode ==> Max Points on a Line, 我的程序到底哪出问题了Simple question: delete element from collection on condition?
Split a String into valid English words问一道关于Vector的题
ObjectOutputStream.writeObject(Hashtable) ?interview question
如何遍历hashtable里边的每一项?传递一个object reference,如何防止更改object?
问个gwt client code调用远程object的问题哪位大牛帮帮忙, 初学JAVA, 问题一道
关于java的疑惑 (转载)让大家了解工业界Java/J2EE面试题的难度
相关话题的讨论汇总
话题: hashtable话题: hashmap话题: hashset