Annotation is a tag in Java that represents metadata attached with a class, method, interface, or field. It provides supplement information to be used by compiler and JVM. Annotations do not change a compiled program's action and they are not pure comments.

If you are preparing for interviews, you can check core java interview questions and answers for more insight.

Suggest An Answer