Posted By:
Jani_Kaarela
Posted On:
Wednesday, August 24, 2005 03:44 AM
A very important difference is, that Properties extends Hashtable, which is synchronized (unlike HashMap). Functionally, it's methods load(java.io.InputStream) and store(java.io.OutputStream, java.lang.String) are what sets it apart from ordinary Maps.
Personally, I suggest you only use it if you need the load/store functionality. Otherwise, use HashMap with or without synchronization (see Collections.synchronizedMap(java.util.Map)).
Oh, and by the way: this is definitely RTFM! stuff. Learn to use the API docs, it's a must if you want to consider yourself a Java programmer.