Determines the current system properties. The current set of system properties for use by the getProperty(String) method is returned as a properties object. If there is no current set of system properties, a set of system properties is first created and initialized.
class SystemPropertiesExample {
public static void main(String[] args) {
System.out.println(System.getProperties().toString()
.replace(',', '\n'));
}
}
...
jdk.debug=release
sun.cpu.endian=little
user.home=/Users/...
user.language=en
java.specification.vendor=Oracle Corporation
java.version.date=2021-01-19
java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home
file.separator=/
java.vm.compressedOopsMode=Zero based
line.separator=
java.specification.name=Java Platform API Specification
java.vm.specification.vendor=Oracle Corporation
java.awt.graphicsenv=sun.awt.CGraphicsEnvironment
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
...