Java annotations
Do you want to add information about the code as meta data? If your answer is yes then this is the feature to add annotations. Why is it needed? It is used to provide supplementary information about the classes, member variables and functions. What is the difference between annotations and comments? Annotations provides the meta data about coding which can be used by tools and compilers. But comments are simple information to know about coding. Syntax: ‘@’ annotation name ...