Application mostly require a file to store the configuration or data oustide the complied code. Most commonly used method is to store in properties file in the form of key value pair. In the below example. we’ll see how to read those properties file using Java.
Java has in-built support in java.util.Properties class to perform read/write operations on the properties file.
name=tutorialflix description=loading properties from file
Reading properties file from classpath or resources folder