Defining the constants: 'public static final' variables are constant. | ||
The naming convention for static final variables is to have them in upper case and separate two words with an underscore. For example: | ||
| ||
If you want to make a static final variable accessible from outside the class, you can make it public too: | ||
|
A java blog with a collection of examples and tutorials on Java and related technologies. (Under maintenance with continuous updates) Be in touch with java jazzle or k2java.blogspot.com.
Tuesday, September 21, 2010
Const in java (Final)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment