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. ExampleOutput: Before setProperties method = C:\Users\Shubham Jadon\eclipse-workspace\tpoint After setProperties method = this/is/the/new/user/dir/path Next TopicJava-system-setproperty-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India