Saturday, October 9, 2021

The Performance Impact of java.lang.System.getProperty()

‘java.lang.System.getProperty()’ is a common API used by Java developers to read the System properties that are configured during application startup time. i.e. when you pass “-DappName=buggyApp” as your application’s startup JVM argument, the value of the ‘appName’ system property can be read by invoking the ‘java.lang.System.getProperty()’. Example:

Java
 
public static String getAppName() {    
    String app = System.getProperty("appName");   
    return app;
}




from DZone.com Feed https://ift.tt/3alvhbt

No comments:

Post a Comment