Posts

Showing posts with the label java tokens

What is a token and its types?

Image
  Remember the time when you used parts of speech like verbs, adjectives in your English class!    These are touted as the building blocks or foundation of the English language. There will be no sentence or structure without them.    Tokens in the programming language play a similar type of role.    When we talk about tokens the concepts like bool, int, private and public are often used.    In a programming language the compiler helps in breaking the line of code into similar texts called tokens. These are touted as the smallest element of Java.   These   java tokens   help make a compiling program more powerful and meaningful.    There are several types of token that every program should know in order to use them effectively in a program.    If you want to know about token and its types, stay till the end of this blog post to equip yourself with the right information.    Let’s get started!  ...