Write a Java program to check whether Java is installed on your computer or not


In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..


HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. public class Javaexcercise {
  2. public static void main(String[] args) {
  3. System.out.println("\nJava Version: "+System.getProperty("java.version"));
  4. System.out.println("Java Runtime Version: "+System.getProperty("java.runtime.version"));
  5. System.out.println("Java Home: "+System.getProperty("java.home"));
  6. System.out.println("Java Vendor: "+System.getProperty("java.vendor"));
  7. System.out.println("Java Vendor URL: "+System.getProperty("java.vendor.url"));
  8. System.out.println("Java Class Path: "+System.getProperty("java.class.path")+"\n");
  9. }
  10. }


java techstudy.org


Related Topics

Popular Posts