KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Say I have the following code using the Preferences class. 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); Is this variable persistent the next time I execute my program? Where do these variables store? What is the proper way of utilizing this? Is the approach better than using properties files?
Tags (comma-separated)
Save Edits
Cancel