Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

marker annotations in java

/*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()
 
PREVIOUS NEXT
Tagged: #marker #annotations #java
ADD COMMENT
Topic
Name
3+9 =