Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Which to use Properties file or java file with constants

807605Jul 4 2007 — edited Jul 4 2007
Hi all, I have a small problem which I could not get anything on Google.
I have some attributes which are used in a java program, now these constants can vary depending on certain rare conditions and maybe not at all. So the thing is should I add these as constants in a java file or make a key value pair entry using a class(java file).

Can anyone explain which is better and also which to use when, or provide some links.

this would be really helpful

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2007
Added on Jul 4 2007
5 comments
2,544 views