Methods for accessing system properties about the Java virtual machine

Explain the methods for accessing system properties about the Java virtual machine

The system properties are accessed by the method System.getProperties(). This method returns a Properties object. By using the list() method of Properties, all the system properties can be viewed.

The following code snippet illustrates displaying the system properties.
Properties props;
props = System.getProperties();
props.list(System.out);
Difference between add() and addElement() in Vector - Java
The add() methods inserts an element at a given position of the vector...
What is difference between sets and lists? - Java
Sets can have unique values. Lists can have duplicate values...
What is fail-fast iterator in Java? What is it used for?
The unsynchronized collections and their modifications, iterations are termed as ‘fail-fast’ iterators. An iterator that implements Iterable interface...
Post your comment