查阅JDK,发现有个原因:
Because Properties inherits from Hashtable, the put and putAll methods can be applied to a Properties object.
Their use is strongly discouraged as they allow the caller to insert entries whose keys or values are not Strings.
[ 本帖最后由 孙斌 于 2011-07-23 15:05 编辑 ] |