Ask a Teacher



what is a token on java ?


A token is the smallest element of a program that is meaningful to the compiler.

Java tokens can be broken into five categories: identifiers, keywords, literals, operators, and separators. The Java compiler also recognizes and subsequently removes comments and whitespaces.



comments powered by Disqus