Constants : Class Definition : Java Articles (documents) Organized by topic

Java Articles
C++
PHP
Java Articles Home »  Class Definition   » [  Constants  ]   
 



/tr>
1.  Call direct?
Author:Tony Sintes
URL:http://www.javaworld.com/javaworld/javaqa/2001-07/03-qa-0720-direct.html?
Summary: Should you call a frequently accessed constant directly?




/tr>
2.  Constants
Author:Tony Sintes
URL:http://www.javaworld.com/javaworld/javaqa/2001-03/03-qa-0330-constants.html?
Summary: What's the best way to handle constants in an application?




/tr>
3.  When a constant isn't really a constant
Author:Vladimir Roubtsov
URL:http://www.javaworld.com/javaworld/javaqa/2003-03/02-qa-0328-constant.html?
Summary: Cyclic class dependencies can create unpredictable runtime behavior




/tr>
4.  Constants, I do declare
Author:Tony Sintes
URL:http://www.javaworld.com/javaworld/javaqa/2001-06/01-qa-0608-constants.html?
Summary: Readers describe how they employ constants




/tr>
5.  Use constant types for safer and cleaner code
Author:Thomas E. Davis
URL:http://www.javaworld.com/javaworld/jw-09-1999/jw-09-cooltools.html?
Summary: Using constant types makes your code safer and cleaner; it reduces the chance of typos that the compiler can't catch while preventing other programmers from passing you invalid values. Constant types also provide a nice object-oriented way to encapsulate arbitrary data in legacy systems. (2,500 words)