I am a bit confused between using a constants file and properties file in Java.
How to decide when to use Constants.java and when to use a .properties>
You usually use property files when you want to specify parameters that vary from deployment to deployment or over time.
You use constants when the parameters are not dynamic and thus not supposed to be changed depending on external factors. You have to recompile the class every time you change a value.