Lexical Analyzer : recognize each meaningful tokens from the given Java source code. Syntax Analyzer : check given tokens are correct or not from the Lexer output.