Chapter 7: Tokens In Java Let's begin to actually learn how to make a program, aye! A Java program usually comprises of tokens, operators, literals, identifiers etc. Tokens are the smallest unit in a Java program. That's the literal meaning. Tokens help in telling the compiler that something is beginning, or an act of storing information, or processing information is taking place. For a better understanding let us skip to the good part- 1) Keywords : These are type of tokens (basically words which indicate different things in a program). For example, the keyword class is used to tell the computer that a class is being defined. Similarly there are many keywords in java which hold special meaning and cannot be used for any other purpose. All keywords and their function is listed at https://www.javatpoint.com/java-keywords 2) Identifiers or Variables: Ever thought how a calculator on your computer works? If not then what are you doing with your lif-. Anyways. When you perform t...
Appreciates
ReplyDelete