What is the @ sign in java used for?

The @ symbol denotes a Java Annotation. What a Java annotation does, is that it adds a special attribute to the variable, method, class, interface, or other language elements.

“In the Java computer programming language, an annotation is a form of syntactic metadata that can be added to Java source code. “

https://en.wikipedia.org/wiki/Java_annotation