Answers for "marker interface in java"

2

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()
Posted by: Guest on September-18-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language