Marker Annotations In Java

[Solved] Marker Annotations In Java | Java - Code Explorer | yomemimo.com
Question : marker annotations in java

Answered by : dwij-sheth

/*The only purpose is to mark a declaration.
These annotations contain no members and do not consist any data.
Thus, its presence as an annotation is sufficient.
Since, marker interface contains no members, simply determining whether it is present or absent is sufficient.
@Override is an example of Marker Annotation.
Example: - */
@TestAnnotation()

Source : | Last Update : Fri, 25 Sep 20

Answers related to marker annotations in java

Code Explorer Popular Question For Java