Read the language reference manual for Java. This is a huge document but well worth reading it. LALR grammar and the lexical units are specified
in the language refernce manual. (There is an Addison Wesley Book called
the Java LAnguage Specification by James Gosling, Bill Joy and Guy Steele.)
An earlier version is in the compiler
design course home page LRM In Postscript (local copy).
Language Refernce Manual and other useful material is in
LRM