ProAnswers.org

How can we Set a system property by using java program?

public class Main {
public static void main(String[] argv) throws Exception {
String previousValue = System.setProperty(“application.property”, “newValue”);
}
}