Program to print System Properties through a Java
Output of the program :
public class SystemProperties { public static void main(String[] args) { System.getProperties().list(System.out); System.out.println(); System.out.println("The User Name property : "); System.out.println(System.getProperty("user.name")); System.out.println("The Java Library path property : "); System.out.println(System.getProperty("java.library.path")); } }
Output of the program :