Java tokens:
- A tokens is an individual element in java
- A program is written by using the available tokens
- More than one token can appear in single line
- each token must be separated by white space
- White space may be blank carriage return or tab
- The various java tokens are
- keywords
- identifiers
- constant or literals
- operators
- separators
Example:
class sample
{
int a,b,c;
the different tokens are
class
sample
{
int
a
,b,
c
;
No comments