What are syntax errors? Give two examples.
Question : What are syntax errors? Give two examples.
A syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular program.
The common syntax errors are:
- Missing semicolon
- Mismatched braces in classes and methods.