For creating custom annotations we need to decide
Target - on which these annotations will work on like field level,
method level, type level etc.
Retention - to what level annotation will be available.
For this, we have built in custom annotations. Check out these mostly used ones:
@Target...