Oddly enough, Annmarie and I compared our "Complete
Java 2 Certification" books and my copy says that the above is legal and her copy says that it is illegal. This is
test yourself, chapter 1, question 3 (page 26). We have the same edition except at the bottom of the copyright page, her book says:
"10 9 8 7 6 5 4 3 2 1"
and mine says:
"10 9 8 7 6 5 4"
What do other copies of the book say about this question?
BTW, we checked the errata from the web site and it didn't mention anything about this.