Java Tokens
Java Tokens
DONE BY:
KAMESH G
21BIT226
BSC.IT_2ND YEAR
JAVA TOKENS
Following are the basic language building blocks:
1. Identifiers :
• Identifiers can begin with a letter, an underscore, or a currency character.
• After the first character, identifiers can also include digits.
• Identifiers can be of any length.
• JavaBeans methods must be named using camelCase, and depending on the
method’s purpose, must start with set, get, is, add, or remove.
KEYWORDS
• Separators are used to inform the Java compiler of how things are grouped in
the code.
• For example,
items in a list are separated by commas much like lists of items in a sentence.
• The most commonly used separator in Java is the semicolon.
• As you have seen, it is used to terminate statements.
• List of separators -> ; , { } ( ) [ ] .
7.OPERATORS :