Java Reference
In-Depth Information
Notice how the final constants are used in main( ) . Since they are members of the Er-
rorMsg class, they must be accessed via an object of that class. Of course, they can also be
inherited by subclasses and accessed directly inside those subclasses.
As a point of style, many Java programmers use uppercase identifiers for final constants,
as does the preceding example. But this is not a hard and fast rule.
Search WWH ::




Custom Search