title: Java: System.getProperty - java and javac version
body: <p>I am quite new to programming but could not find an answer to my question:</p>
  
  <p>I want to write a short code in Java which outputs the Java version as well as the Javac version. This output should be equivalent to the output from the terminal using the "java -version" and "javac -version" command. </p>
  
  <p>With <strong>System.getProperty("java-version")</strong> I am able to get the output as if I use the "javac -version" command directly in the terminal. But I can't find a way to get all the additional informations of the Java version.</p>
  
  <p>Thanks in advance!</p>
  
  <p>Patrick</p>