Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The @ symbol in java [duplicate]

Tags:

java

What exactly does @Object.field do? I was reading some code that i fetched from a decompiler. It uses

@Object.name(field = "stuff",field = "stuff")
public static Object fieldName;
like image 753
snocavotia Avatar asked Oct 23 '13 19:10

snocavotia


1 Answers

The @ symbol specifies the Annotation types. This represents some metadata associated to your code

The at sign character (@) indicates to the compiler that what follows is an annotation.

like image 61
Rahul Tripathi Avatar answered Nov 16 '22 04:11

Rahul Tripathi