answersLogoWhite

0

What are java tokens used for?

Updated: 8/10/2023
User Avatar

Wiki User

6y ago

Best Answer

In a Java program, all characters are grouped into symbols called tokens. Larger language features are built from the first five categories of tokens (the sixth kind of token is recognized, but is then discarded by the Java compiler from further processing). We must learn how to identify all six kind of tokens that can appear in Java programs. In EBNF we write one simple rule that captures this structure: token <= identifier| keyword | separator | operator | literal | comment The different types of Tokens are:

# Identifiers: names the programmer chooses # Keywords: names already in the programming language # Separators (also known as punctuators): punctuation characters and paired-delimiters # Operators: symbols that operate on arguments and produce results # Literals (specified by their type) #* Numeric: intand double #* Logical: boolean #* Textual: char and String #* Reference: null # Comments #* Line

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y ago

A token is the smallest element of a program that is meaningful to the compiler.Tokenssupported in Java include keywords, variables, constants, special characters, operations etc. When you compile a program, the compiler scans the text in your source code and extracts individual tokens.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Each individual character available in a Java statement is termed as token.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are java tokens used for?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can Tokens be used for a Synchro Summon in Yu-Gi-Oh?

Yes, Tokens have a level and can be used in a Synchro Summon.


What are Facebook tokens used for?

I believe the tokens you are referring to are all for the application Friends For Sale.


What is token List out various type of token support in java?

Tokens are the smallest unit of Program. There is Five Types of Tokens 1) Reserve Word or Keywords 2) Identifier 3) Literals 4) Operators 5) Separators


What version of java was used in 1995?

what version of java was used in 1995 and what kind of database was used along with java from 1995 to 1998?


Which api used in java?

The Java API is the API for the main Java Library.


What do you use the tokens on Madden 08 for?

tokens are for buying madden cards. these cards can be used to help in tough games


Write a java program to count the space from the given line?

.... String line = "This is example program with spaces"; String[] tokens = line.split(" "); System.out.println(tokens.length-1); .......


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


What can you use Facebook tokens for on Facebook?

Tokens are used to play different games on Facebook, and to purchase different things on Facebook.


What are casino tokens used for?

Casino tokens are practically viewed as a casino's own monetary system, eliminating the need to make transactions through cash money. The tokens are interchangeable with cash at a cashier station, and are likely used for the convenience of tracking.


When was clay tokens used for record keeping?

conard


What were tokens used for during the civil war?

During the Civil War tokens were used for distributing in the United States. At this time you could not distribute anything unless you had a Token. This was used for safety purposes.