The getInteger()  method of Integer class determines the integer value of the system property with the given name.

 Syntax`

public static Integer getInteger(String nm)

 Parameters

The parameter ‘nm’ represents the property name.

 Throws

The getInteger () method throws:

SecurityException- for the same reasons as System.getProperty

 Return Value

This method returns the integer value of the property.

Example 1

Output

Example 2

Output

Example 3

Output

Pin It on Pinterest

Share This