Skip to content

Glossary: Java Basics

Annotation

Also written: annotations, @Override

A note for the compiler that starts with `@`. `@Override` asks it to check that a method really replaces an existing one, such as `toString`, so a typo becomes an error.

Where the book teaches it

Related terms

toString