Java Programing laungage

java.util Projects

java.util Project 1

Access System Preferences node

In this page of the tutorials, we are going to learn that how a user can access the System preferences.

Previous Home Next

Here we are going to create it easier to understand the step of the access system preferences process by this example. If we consider the example ,it will be display the preferences of the system as root type is system and due to none key value and node it display nothing in map.


package r4r;
import java.util.*;
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;
public class accesssystempreference {
public static void main(String[] args)
throws IOException, BackingStoreException {
Preferences rnode = Preferences.systemRoot();

Previous Home Next