Free Data Structures and Algorithms Course









Subscribe below and get all best seller courses for free !!!










OR



Subscribe to all free courses

How to print System Properties through a Java program ?

Program to print System Properties through a Java

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 :




 
© 2021 Learn Java by Examples Template by Hubberspot