Originally posted by Wilson Mui:
I just wanted to confirm this, I ran the test and it worked, but I just want to make sure that I didn't do something hokey that I didn't even realize.
Yes, you did something that is "hokey" but not illegal. The
Java Language Specification suggests that modifiers should be used in the order that they appear in the JLS.
Section 8.1.1 provides a good example.
If two or more class modifiers appear in a class declaration, then it is customary, though not required, that they appear in the order consistent with that shown above in the production for ClassModifier.
The exam won't test your knowledge of the suggested order.
[ May 08, 2003: Message edited by: Dan Chisholm ]