marker annotations in java

Solutions on MaxInterview for marker annotations in java by the best coders in the world

showing results for - "marker annotations in java"
Édouard
08 Jun 2019
1/*The only purpose is to mark a declaration.
2These annotations contain no members and do not consist any data. 
3Thus, its presence as an annotation is sufficient. 
4Since, marker interface contains no members, simply determining whether it is present or absent is sufficient. 
5
6@Override is an example of Marker Annotation.
7
8Example: - */
9
10@TestAnnotation()