Properties file or a Constants Class 2005-01-12 - By Ben Hill
Back On Wed, 2005-01-12 at 08:13, KR Kumar wrote: > Is it better to use a Constants java class and declare all the > constants or use a key value pair properties file backed by a > Properties class?
Depends on your implementation. Broadly; constants class for speed and low instance of change, properties file for regular changes or changes that need to be made without re-compilation.
HTH
Ben
-- ben@(protected) www.javacoder.net - "Java coding, from the source!"
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|