Skip to main content

Posts

Showing posts with the label Java Tokens

Java Tokens

 Java Tokens     A java programes is basically a collection of classes. A class is defined by a set of declaration statements and methods containing executable statements. Most statements contain expression which describe the actions carried out on data. Smallest individual units in a program are know as token. The compiler recognizes them for building up expressions and statements.     In a simple terms, a java program is a collection of tokens, comments and white spaces. Java language includes five type of token.     Reserved Keyword     Identifiers     Literals     Operators     Separators Reserved Keyword:     Keywords are an essential part of language definition.  Keywords are the words whis defination is already known to java. They implements specific featues of language. Java has 50 reserved keyword.  These keywords, combined with operators and separators according to syntax, from defin...