Tokens of Java
Notes:
Tokens of Java Programming Language:
Tokens in Java Language: C KICS OS
(“Smallest Unit” of any programming language is generally called as a Token (word))
C – Comments
.
K – Keywords and Data Types
I – Identifiers
C – Constants and Variables
S – Strings and Characters
O – Operators : LARA BICS
- L – Logical (&&, || ,!)
- A – Arithmetic (+, - , *, /, %)
- R – Relational (<, >, <=, >=, ==, ! =)
- A – Assignment (=)
o Arithmetic Assignment
( Short Hand Assignment) : (+=, -=, *=, /=, %=)
- B – Bitwise (&,|, ~, ^)
o Bitwise Shift ( <l<, >>, >>>)
- I – Increment and Decrement (++, -- )
- C – Conditional ( ?: )
- S – Special ( instanceof, new,(type) etc)
- - Precedence and associativity of operators – P UMASRE BLCA
S – Separators. ([] , (), {}, ;(semicolon) , , (comma), . (dot) and more)