Java System setProperties() MethodThe setProperties() method of Java System class sets the properties of the system to the argument of properties. Syntax:Parameters:props - It is the new system properties. Throws:SecurityException: This exception will throw if the security manager exists and its checkPropertiesAccess method doesn't allow access to system properties. ExampleTest it NowOutput: Before setProperties method = C:\Users\Shubham Jadon\eclipse-workspace\tpoint After setProperties method = this/is/the/new/user/dir/path
Next TopicJava System
|