­
online help: what is java tokens
Showing posts with label what is java tokens. Show all posts
Showing posts with label what is java tokens. Show all posts

Saturday, 10 November 2018

Java Tokens | What is Java tokens - Online Help

Java tokens:

Guyz in this post we are going to discuss Java tokens.so, what is java tokens? and what are all the types of Java Tokens? let's get started. A smallest individual unit in a java program is referred to as tokens. When a program is compiled, the compiler scans the source code and parse it into tokens to find the syntax error.Java has five types of tokens. They are:

1.Keywords

2.Identifiers

3.Literals

4.Operators

5.Separators

let's see the brief introduction of the java tokens is:

Keyword:

Keywords are reserved words and it has a standard predefined specific meaning, no one can change its meaning. Some example of java keyword is int, char, float, etc.

Identifier:

Identifiers are names given to variables, class, methods, objects and interface in a program.

Literals:

Literals are a sequence of characters that represent constant values.

Operators:

Operators are symbols used to perform some operation like addition, subtraction, multiplication,etc.,

Separators:

Separators are symbols used to separate a group of codes.