title: Java How do you use the preference API? Where do these variables store?
body: <p><strong>Say I have the following</strong></p>
  
  <pre><code>Preferences prefs = Preferences.userRoot().node(this.getClass().getName());
  
  String ID1 = "Test1";
  
  System.out.println(prefs.getBoolean(ID1, true));
  
  prefs.putBoolean(ID1, false);
  
  //prefs.remove(ID1);
  </code></pre>
  
  <ol>
  <li>Is this variable persistent the next time I execute my program? </li>
  <li>Where do these variables store? </li>
  <li>What is the proper way of utilizing this?</li>
  <li>Is the approach better than using properties files?</li>
  </ol>