Computer Applications
What is a token? Name different types of tokens.
Values & Data Types Java
252 Likes
Answer
A token is defined as each individual component of Java program that carries some meaning and takes active part in program execution. The different types of tokens in Java are:
- Identifiers
- Literals
- Operators
- Punctuators
- Separators
- Keywords
Answered By
155 Likes
Related Questions
Why is it necessary to define data type in Java programming?
Define the following with an example:
(a) variable
(b) constant
(c) boolean data type
(d) coercion
(e) primitive data type
(f) non-primitive data type
Explain the term type casting.
Assign the following to a variable with suitable data type.
(a) m = 22 / 7
(b) p= 1.4142135 (value of square root of 2)
(c) k= 0.00004545
(d) n=24.50