9

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;
snocavotia
  • 435
  • 1
  • 3
  • 13

1 Answers1

9

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.

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331