Fifth International World Wide Web Conference
Lexical Structure
- Java has a lexical structure similar to C and C++
- By design, to allow programmers familiar with either language to read Java
programs with little difficulty
- Both C and C++-style comments:
/* C-style comment: text is
ignored up to comment ending */
// C++-style comment: text is ignored up to
the end of the line
/** javap doc: text included in automatically generated
documentation */
- Extensive set of reserved words (beyond C and C++). Many to be introduced
during tutorial.
Java - An Introductory Language Tutorial
(E.A.Johnson)