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


public static Integer getInteger(String nm)


The parameter ‘nm’ represents the property name.


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


Example 2


Example 3


Pin It on Pinterest

Share This