Computer Science, asked by kirtihemantrawat8379, 9 months ago

difference between tokens and character set in java​

Answers

Answered by shubhambarik2006
0

Answer:

Often you might have seen large Java applications with thousands of lines of codes, but have you ever wondered what lies at its core? Well, these are tokens, the smallest individual elements, also known as the building blocks of a Java program. Through the medium of this article, I will throw some light on Tokens in Java, which are often neglected but form an integral part of Java programming language.

In Java, a program is a collection of classes and methods, while methods are a collection of various expressions and statements. Tokens in Java are the small units of code which a Java compiler uses for constructing those statements and expressions. Java supports 5 types of tokens which are:

Keywords

Identifiers

Literals

Operators

Special Symbols

Similar questions