JLS (Java Language Specification). A lawyerly document that specifies the grammar of the Java language. This is the ultimate authority on any question of what is legal syntax in Java and just what any Java program is supposed to do. It is primarily aimed at compiler writers and lawyers. It is all but unintelligible to newbies. It is the bible used to settle language disputes in Internet discussions.
It is written in a language it rarely answers my questions clearly. Perhaps I am too much of a lawyer. I find too many ways of interpreting its language. Most of the time it might as well be written in Chinese. It uses language that to me bears little resemblance to the Java symbols I manipulate. It has too many of its own abstractions. It is written to impress, perhaps as a legal document, but not to explain to ordinary humans who understand best by generalising from examples to get the general idea plus the general rule to nail down the fine points. In short, I have little confidence in my interpretations. It is OK for things I know already, but not for things I find puzzling.
The problem with using experiments to deduce the rules of the Java language is that if something does not work, it may well be for a reason quite different from the thing I am testing. If it does work, there may be no guarantee it will always work, or work in other situations.
To settle a question I use a multi-pronged approach:
Sources:
![]() |
recommend book⇒The Java Language Specification, Fourth Edition | |||
| by: | Ken Arnold, James Gosling, David Holmes | 978-0-321-34980-4 | paperback | |
|---|---|---|---|---|
| publisher: | Prentice Hall | |||
| published: | 2005-08-27 | |||
| This book is for language lawyers, people who write compilers or those who just like to nit pick. It is not a suitable book for beginners. Covers up to JDK 1.5. Look online to learn about 1.6 and 1.7. | ||||
| Greyed out stores probably do not have the item in stock | ||||
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/jls.html | J:\mindprod\jgloss\jls.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.211] | |
| Feedback | You are visitor number 8,232. | |