What is the difference between Hash map and Property class?
i am aware Property class is used to read from a property file..But whey do we require a hash map?
In which scenario will we use Hash map? Please tell with an Example..of using both Property and hash map class?
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.