Anyone please help me on reloading properties file. I have code like this
Properties prop = new Properties();
InputStream trackerFileStream =
LoadProperty.class.getClassLoader().getResourceAsStream("sample.properties");
prop.load(trackerFileStream);
After loading the properties file through class loader, I modify the properties file. I am not able to get the latest modifications in the same program execution.
Can anyone please suggest me how to reload the properties file without re-executing the program?