Two Ways to Read Properties File

There are two ways by which we can access properties file

1) Use Java.util.Properties
2) Use Java.util.ResourceBundle

In case of ResourceBundle No need to specify extension. Here you can specify loacale . it indiacate which
country language you want to support

Difference Between Properties and ResourceBundle

Properties class  is generally used for retrieving key value pair
here there is no localization specified
A ResourceBundle is used to access resources in a way that it provide localisation
here in case of ResourceBundle you can load the properties file based on locale

Next PostNewer Post Previous PostOlder Post Home