Do environment variables change when a properties file is overwritten?
sobes.tech AI
Answer from AI
Environment variables are system parameters set at the operating system level and accessible to processes. When a properties file (for example, .properties in Java) is overwritten, the contents of that file change, but this does not affect environment variables that are already set in the system or in the process.
In other words, modifying or overwriting a properties file does not automatically change environment variables. To change environment variables, they must be explicitly redefined in the system or in the process, for example, through startup scripts or programmatically.
Example: if you have a config.properties file with parameters, and you change it, the environment variables available in the JVM will remain the same unless you explicitly change them.