How to create a property file in java

Maybe don't do it at all, just use the existing Preferences class to do it for you

Maybe don't do it at all, just use the existing Preferences class to do it for you

No i want to create a new property file with some attributes

No i want to create a new property file with some attributes

Preferences allows you to define attributes both global and user-specific but unlike Properties it handles the problem of where to store that data in a system-independent way. Still, it's up to you.