Answers for "marker annotations in 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: - */

Posted by: Guest on September-18-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language