Java Runtime Environment Details - BunksAllowed

BunksAllowed is an effort to facilitate Self Learning process through the provision of quality tutorials.

Community

Java Runtime Environment Details

Share This
package com.t4b.test; import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; import java.util.Map; import java.util.Set; public class SystemInfo { public static void main(String[] args) { RuntimeMXBean runtimeBean = ManagementFactory.getRuntimeMXBean(); Map systemProperties = runtimeBean .getSystemProperties(); Set keys = systemProperties.keySet(); for (String key : keys) { String value = systemProperties.get(key); System.out.printf("[%s] = %s.\n", key, value); } } }

Happy Exploring!


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.