Properties class allows
String key/value pairs to read from or write to a stream. You may have have several application specific parameters to be read at the application startup you can utilize Properties class. HashMap is a collection class which allows to use key/value pairs of objects. But HashMap is identical to Hashtable (which the Properties class itself extends from) apart from few differences. Check the API documentation of those.