Lexical Structure
Python |
Java |
Literals include
numbers, strings, tuples, lists, and dictionaries. Identifiers include the
names of variables, classes, functions, and methods. Reserved words include
those of the major control statements (if, while, for, import, etc.), operators (in, is, etc.), definitions (def, class, etc.) and special values (True, False, None, etc.). |
Literals include
numbers, characters, and strings. Identifiers include the
names of variables, classes, interfaces, and methods. Reserved words include
those of the major control statements (if, while, for, import, etc.), operators (instanceof, throw, etc.), definitions (public, class, etc.), special values (true, false, null, this, super etc.), and standard type names (int, double, String, etc.). |