I am not able to get NSUserDefaults concepts properly. Is that a database of plist file ?
It's a key-value store that is persisted between restarts of your application. How it's implemented has little bearing on how you use it.