I didn\'t understand when I used System.setProperty
to define a parameter, where the data is stored?
If say that I used System.setProperty
In the first Scenario, the moment A.java run, the JVM will stop and it will release all the values. And when the B.java run, the JVM will start fresh. So, the value will not persist across.
In the second scenario, the JVM will not stop between the executions. So, the property value will persist from the second program.