assert is a keyword. It was introduced in JDK 1.4. The are two types of asserts
- Very simple
assert statements
- Simple
assert statements.
By default all assert statements will not be executed. If an assert statement receives false, then it will automatically raise an assertion error.