Here you can find the source of getDefault()
public static Preferences getDefault()
//package com.java2s; //License from project: Open Source License import java.util.prefs.Preferences; public class Main { public static Preferences getDefault() { Preferences userRoot = userRoot(); return userRoot.node("com").node("kyj").node("gagoyle"); }/*from www. ja v a 2 s. co m*/ public static Preferences userRoot() { return Preferences.userRoot(); } }